mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 00:18:11 +01:00
climate: brown paper bag fix for on_configure (#4573)
I forgot this hunk in https://github.com/esphome/esphome/pull/4511 . I'm sorry for the noise.
This commit is contained in:
parent
ebc544e4b4
commit
0de5808ed2
1 changed files with 4 additions and 0 deletions
|
@ -324,6 +324,10 @@ async def setup_climate_core_(var, config):
|
|||
trigger = cg.new_Pvariable(conf[CONF_TRIGGER_ID], var)
|
||||
await automation.build_automation(trigger, [], conf)
|
||||
|
||||
for conf in config.get(CONF_ON_CONTROL, []):
|
||||
trigger = cg.new_Pvariable(conf[CONF_TRIGGER_ID], var)
|
||||
await automation.build_automation(trigger, [], conf)
|
||||
|
||||
|
||||
async def register_climate(var, config):
|
||||
if not CORE.has_id(config[CONF_ID]):
|
||||
|
|
Loading…
Reference in a new issue