1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-22 21:22:22 +01:00

Fix incorrect entity count due to undefined execution order with globals (#10497)

This commit is contained in:
J. Nick Koston
2025-08-31 20:01:15 -05:00
committed by GitHub
parent 905e2906fe
commit 6d834c019d
2 changed files with 23 additions and 1 deletions

View File

@@ -423,7 +423,7 @@ async def _add_automations(config):
DATETIME_SUBTYPES = {"date", "time", "datetime"}
@coroutine_with_priority(-100.0)
@coroutine_with_priority(-1000.0)
async def _add_platform_defines() -> None:
# Generate compile-time defines for platforms that have actual entities
# Only add USE_* and count defines when there are entities