Print ESPHome version when running commands (#4883)

This commit is contained in:
Jesse Hills
2023-05-23 21:56:15 +00:00
committed by GitHub
parent 35ef4aad60
commit baa08160bb
+2
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)