Add INFO logging to generic_thermostat component for keep-alive turn … (#28740)
* Add INFO logging to generic_thermostat component for keep-alive turn on/off * run blackpull/30635/head
parent
7052cdded1
commit
955aa1de39
|
@ -416,6 +416,10 @@ class GenericThermostat(ClimateDevice, RestoreEntity):
|
||||||
await self._async_heater_turn_off()
|
await self._async_heater_turn_off()
|
||||||
elif time is not None:
|
elif time is not None:
|
||||||
# The time argument is passed only in keep-alive case
|
# 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()
|
await self._async_heater_turn_on()
|
||||||
else:
|
else:
|
||||||
if (self.ac_mode and too_hot) or (not self.ac_mode and too_cold):
|
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()
|
await self._async_heater_turn_on()
|
||||||
elif time is not None:
|
elif time is not None:
|
||||||
# The time argument is passed only in keep-alive case
|
# 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()
|
await self._async_heater_turn_off()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue