From 5121759e3b70c1186407adc96b541a7813c76532 Mon Sep 17 00:00:00 2001 From: = <=> Date: Thu, 5 Sep 2024 08:39:51 +0000 Subject: [PATCH] chore: warning containes both the climate id and the sensor id Fixes #286 --- custom_components/dual_smart_thermostat/climate.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/custom_components/dual_smart_thermostat/climate.py b/custom_components/dual_smart_thermostat/climate.py index 304ea21..91cffa8 100644 --- a/custom_components/dual_smart_thermostat/climate.py +++ b/custom_components/dual_smart_thermostat/climate.py @@ -990,7 +990,11 @@ async def _async_sensor_not_responding(self, now: datetime | None = None) -> Non now - state.last_updated if now and state else "---", ) if self._is_device_active: - _LOGGER.warning("Sensor is stalled, call the emergency stop") + _LOGGER.warning( + "Climate (%s) - sensor (%s) is stalled, call the emergency stop", + self.unique_id, + self.sensor_entity_id, + ) await self.hvac_device.async_turn_off() self._hvac_action_reason = HVACActionReason.TEMPERATURE_SENSOR_STALLED self.async_write_ha_state()