Print ESPHome version when running commands (#4883)

This commit is contained in:
Jesse Hills 2023-05-24 09:56:15 +12:00 committed by GitHub
parent 35ef4aad60
commit baa08160bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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