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

This commit is contained in:
J. Nick Koston authored and Jesse Hills committed 2025-09-04 09:06:00 +12:00
1 parent 950299e52b
commit de998f2f39
2 files changed
+23 -1

No files matched your search

+1 -1
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