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:
@@ -14,6 +14,6 @@
|
||||
"quality_scale": "silver",
|
||||
"requirements": [],
|
||||
"ssdp": [],
|
||||
"version": "7.2.0",
|
||||
"version": "7.2.1",
|
||||
"zeroconf": []
|
||||
}
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user