From 955aa1de39894dab0339ff2378914f2d60f6fb18 Mon Sep 17 00:00:00 2001 From: Nathan <8044836+nemccarthy@users.noreply.github.com> Date: Fri, 10 Jan 2020 10:20:16 +1100 Subject: [PATCH] =?UTF-8?q?Add=20INFO=20logging=20to=20generic=5Fthermosta?= =?UTF-8?q?t=20component=20for=20keep-alive=20turn=20=E2=80=A6=20(#28740)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add INFO logging to generic_thermostat component for keep-alive turn on/off * run black --- homeassistant/components/generic_thermostat/climate.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/homeassistant/components/generic_thermostat/climate.py b/homeassistant/components/generic_thermostat/climate.py index 58514934fc7..e179b576f70 100644 --- a/homeassistant/components/generic_thermostat/climate.py +++ b/homeassistant/components/generic_thermostat/climate.py @@ -416,6 +416,10 @@ class GenericThermostat(ClimateDevice, RestoreEntity): await self._async_heater_turn_off() elif time is not None: # The time argument is passed only in keep-alive case + _LOGGER.info( + "Keep-alive - Turning on heater heater %s", + self.heater_entity_id, + ) await self._async_heater_turn_on() else: if (self.ac_mode and too_hot) or (not self.ac_mode and too_cold): @@ -423,6 +427,9 @@ class GenericThermostat(ClimateDevice, RestoreEntity): await self._async_heater_turn_on() elif time is not None: # The time argument is passed only in keep-alive case + _LOGGER.info( + "Keep-alive - Turning off heater %s", self.heater_entity_id + ) await self._async_heater_turn_off() @property