Print ESPHome version when running commands (#4883)

This commit is contained in:
Jesse Hills 2023-05-24 09:56:15 +12:00 committed by Keith Burzinski
parent fb4cb07c6f
commit 7d2ae4e252
No known key found for this signature in database
GPG key ID: 802564C5F0EEFFBE

View file

@ -932,6 +932,8 @@ def run_esphome(argv):
_LOGGER.error(e, exc_info=args.verbose) _LOGGER.error(e, exc_info=args.verbose)
return 1 return 1
safe_print(f"ESPHome {const.__version__}")
for conf_path in args.configuration: for conf_path in args.configuration:
if any(os.path.basename(conf_path) == x for x in SECRETS_FILES): if any(os.path.basename(conf_path) == x for x in SECRETS_FILES):
_LOGGER.warning("Skipping secrets file %s", conf_path) _LOGGER.warning("Skipping secrets file %s", conf_path)