From 1d941284ffc242423dbaeb64484643f63f688838 Mon Sep 17 00:00:00 2001 From: Matthias Alphart Date: Sat, 19 Jun 2021 08:10:17 +0200 Subject: [PATCH] Fix not awaiting async super method in KNX climate (#52005) --- homeassistant/components/knx/climate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/knx/climate.py b/homeassistant/components/knx/climate.py index 1a4b15c4265..adf585555fd 100644 --- a/homeassistant/components/knx/climate.py +++ b/homeassistant/components/knx/climate.py @@ -327,12 +327,12 @@ class KNXClimate(KnxEntity, ClimateEntity): async def async_added_to_hass(self) -> None: """Store register state change callback.""" - super().async_added_to_hass() + await super().async_added_to_hass() if self._device.mode is not None: self._device.mode.register_device_updated_cb(self.after_update_callback) async def async_will_remove_from_hass(self) -> None: """Disconnect device object when removed.""" - super().async_will_remove_from_hass() + await super().async_will_remove_from_hass() if self._device.mode is not None: self._device.mode.unregister_device_updated_cb(self.after_update_callback)