From 0de5808ed283cb82cf809c2bc6e09d66ff640356 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Sun, 19 Mar 2023 18:54:00 +0000 Subject: [PATCH] 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. --- esphome/components/climate/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/esphome/components/climate/__init__.py b/esphome/components/climate/__init__.py index 4a16c3fb7d..6734917bf3 100644 --- a/esphome/components/climate/__init__.py +++ b/esphome/components/climate/__init__.py @@ -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]):