diff --git a/homeassistant/components/knx/climate.py b/homeassistant/components/knx/climate.py index af58dd6ef4d0b525ed2c8456b2b5d252349165b7..2c0153c5d2b1f98cd2a5cffd072a5e677d73b120 100644 --- a/homeassistant/components/knx/climate.py +++ b/homeassistant/components/knx/climate.py @@ -427,7 +427,7 @@ class KNXClimate(KnxYamlEntity, ClimateEntity): self._device.mode.xknx.devices.async_remove(self._device.mode) await super().async_will_remove_from_hass() - def after_update_callback(self, _device: XknxDevice) -> None: + def after_update_callback(self, device: XknxDevice) -> None: """Call after device was updated.""" if self._device.mode is not None and self._device.mode.supports_controller_mode: hvac_mode = CONTROLLER_MODES.get( @@ -435,4 +435,4 @@ class KNXClimate(KnxYamlEntity, ClimateEntity): ) if hvac_mode is not HVACMode.OFF: self._last_hvac_mode = hvac_mode - super().after_update_callback(_device) + super().after_update_callback(device) diff --git a/homeassistant/components/knx/entity.py b/homeassistant/components/knx/entity.py index 6574e5d5860dc206579995c1f88e3a6618e66b48..a042c2b4c6b2fb3f3f2fec6316d246ce1b21a68a 100644 --- a/homeassistant/components/knx/entity.py +++ b/homeassistant/components/knx/entity.py @@ -69,7 +69,7 @@ class _KnxEntityBase(Entity): """Request a state update from KNX bus.""" await self._device.sync() - def after_update_callback(self, _device: XknxDevice) -> None: + def after_update_callback(self, device: XknxDevice) -> None: """Call after device was updated.""" self.async_write_ha_state() diff --git a/homeassistant/components/knx/sensor.py b/homeassistant/components/knx/sensor.py index ed265db4ac741920193fdea6c6d4e6b38370eef1..fa4911aa4b7b8e1aa77299e658da6fb7ba777d47 100644 --- a/homeassistant/components/knx/sensor.py +++ b/homeassistant/components/knx/sensor.py @@ -211,7 +211,7 @@ class KNXSystemSensor(SensorEntity): return True return self.knx.xknx.connection_manager.state is XknxConnectionState.CONNECTED - def after_update_callback(self, _: XknxConnectionState) -> None: + def after_update_callback(self, device: XknxConnectionState) -> None: """Call after device was updated.""" self.async_write_ha_state()