mirror of
https://github.com/esphome/esphome.git
synced 2025-10-12 14:53:49 +01:00
preen
This commit is contained in:
@@ -123,8 +123,9 @@ async def to_code(config):
|
||||
if "api" in CORE.config:
|
||||
# Always: get_mac_address()
|
||||
dynamic_txt_count += 1
|
||||
# Conditional: friendly_name (if not empty, but we conservatively count it)
|
||||
dynamic_txt_count += 1
|
||||
# Conditional: friendly_name (if not empty)
|
||||
if CORE.friendly_name:
|
||||
dynamic_txt_count += 1
|
||||
# Conditional: dashboard_import_url
|
||||
if "dashboard_import" in CORE.config:
|
||||
dynamic_txt_count += 1
|
||||
|
Reference in New Issue
Block a user