From d83fd263b09f4ff118f44084d89491ef21b34267 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Mon, 15 Dec 2025 15:44:12 +0000 Subject: [PATCH] Don't rebuild build_time_str It's already in the JSON now --- esphome/__main__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/esphome/__main__.py b/esphome/__main__.py index 942f533038..119ab957a3 100644 --- a/esphome/__main__.py +++ b/esphome/__main__.py @@ -550,15 +550,14 @@ def _check_and_emit_build_info() -> None: return config_hash = build_info.get("config_hash") - build_time = build_info.get("build_time") + build_time_str = build_info.get("build_time_str") - if config_hash is None or build_time is None: + if config_hash is None or build_time_str is None: return # Emit build_info with human-readable time - build_time_str = time.strftime("%b %d %Y, %H:%M:%S", time.localtime(build_time)) _LOGGER.info( - "Build Info: config_hash=0x%08x build_time=%s", config_hash, build_time_str + "Build Info: config_hash=0x%08x build_time_str=%s", config_hash, build_time_str )