Skip to content

Commit

Permalink
FIX bug (#141)
Browse files Browse the repository at this point in the history
Co-authored-by: Jean-Marc Collin <[email protected]>
  • Loading branch information
jmcollin78 and Jean-Marc Collin authored Oct 28, 2023
1 parent e1c4fa1 commit 15c419a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/versatile_thermostat/underlyings.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ async def check_initial_state(self, hvac_mode: HVACMode):
self._entity_id,
)
await self.set_hvac_mode(hvac_mode)
elif hvac_mode != HVACMode.OFF and self.is_device_active:
elif hvac_mode != HVACMode.OFF and not self.is_device_active:
_LOGGER.warning(
"%s - The hvac mode is ON, but the underlying device is not ON. Turning on device %s",
self,
Expand Down

0 comments on commit 15c419a

Please sign in to comment.