FIX #73, #72. thanks to Salabur

This commit is contained in:
Jean-Marc Collin
2023-04-14 08:24:01 +02:00
parent 81a467b8c3
commit a17423d470
4 changed files with 14 additions and 4 deletions

View File

@@ -178,6 +178,7 @@ class UnderlyingSwitch(UnderlyingEntity):
if hvac_mode == HVACMode.OFF:
if self.is_device_active:
await self.turn_off()
await self._cancel_cycle()
return True
@property