Release 7.2.0- Heating is inverted on over_switch with inverted commands ? (#891)

* Release 7.2.0- Heating is inverted on `over_switch` with inverted commands ?
Fixes #889

* Release

---------

Co-authored-by: Jean-Marc Collin <jean-marc.collin-extern@renault.com>
This commit is contained in:
Jean-Marc Collin
2025-02-08 11:56:24 +01:00
committed by GitHub
parent 87064882a3
commit c20e641ac1
5 changed files with 48 additions and 18 deletions

View File

@@ -14,6 +14,6 @@
"quality_scale": "silver",
"requirements": [],
"ssdp": [],
"version": "7.2.0",
"version": "7.2.1",
"zeroconf": []
}

View File

@@ -281,8 +281,8 @@ class UnderlyingSwitch(UnderlyingEntity):
# not self.is_inversed and real_state
# )
is_on = self._hass.states.is_state(self._entity_id, self._on_command.get("state"))
if self.is_inversed:
return not is_on
# if self.is_inversed:
# return not is_on
return is_on