1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-10 23:32:23 +01:00

[core] Fix compilation errors when platform sections have no entities (#10023)

This commit is contained in:
J. Nick Koston
2025-08-02 13:59:20 -10:00
committed by GitHub
parent fd442cc485
commit 296442d8f1
19 changed files with 18 additions and 22 deletions

View File

@@ -202,4 +202,3 @@ async def switch_is_off_to_code(config, condition_id, template_arg, args):
@coroutine_with_priority(100.0)
async def to_code(config):
cg.add_global(switch_ns.using)
cg.add_define("USE_SWITCH")