1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-12 14:53:49 +01:00
This commit is contained in:
J. Nick Koston
2025-10-07 21:21:22 -10:00
parent 55888b9bee
commit 52f2826d38

View File

@@ -123,8 +123,9 @@ async def to_code(config):
if "api" in CORE.config: if "api" in CORE.config:
# Always: get_mac_address() # Always: get_mac_address()
dynamic_txt_count += 1 dynamic_txt_count += 1
# Conditional: friendly_name (if not empty, but we conservatively count it) # Conditional: friendly_name (if not empty)
dynamic_txt_count += 1 if CORE.friendly_name:
dynamic_txt_count += 1
# Conditional: dashboard_import_url # Conditional: dashboard_import_url
if "dashboard_import" in CORE.config: if "dashboard_import" in CORE.config:
dynamic_txt_count += 1 dynamic_txt_count += 1