Fix "station is open" binary sensor in Tankerkoenig (#70928)
This commit is contained in:
parent
11b91e44c8
commit
d90937182e
1 changed files with 2 additions and 2 deletions
|
@ -74,5 +74,5 @@ class StationOpenBinarySensorEntity(CoordinatorEntity, BinarySensorEntity):
|
||||||
@property
|
@property
|
||||||
def is_on(self) -> bool | None:
|
def is_on(self) -> bool | None:
|
||||||
"""Return true if the station is open."""
|
"""Return true if the station is open."""
|
||||||
data = self.coordinator.data[self._station_id]
|
data: dict = self.coordinator.data[self._station_id]
|
||||||
return data is not None and "status" in data
|
return data is not None and data.get("status") == "open"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue