mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Add tado zone variable open window detected (#34969)
* openwindow0: this is the part for the HA itself * Update homeassistant/components/tado/sensor.py Co-authored-by: J. Nick Koston <nick@koston.org> * Update homeassistant/components/tado/sensor.py Co-authored-by: J. Nick Koston <nick@koston.org> * new version after review Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
fca09b2615
commit
626f72b97a
@ -222,7 +222,10 @@ class TadoZoneSensor(TadoZoneEntity, Entity):
|
||||
self._state = self._tado_zone_data.preparation
|
||||
|
||||
elif self.zone_variable == "open window":
|
||||
self._state = self._tado_zone_data.open_window
|
||||
self._state = bool(
|
||||
self._tado_zone_data.open_window
|
||||
or self._tado_zone_data.open_window_detected
|
||||
)
|
||||
self._state_attributes = self._tado_zone_data.open_window_attr
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user