mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Fix fibaro cover state (#73921)
This commit is contained in:
parent
9eed8b2ef4
commit
eb6afd27b3
@ -93,6 +93,11 @@ class FibaroCover(FibaroDevice, CoverEntity):
|
|||||||
def is_closed(self) -> bool | None:
|
def is_closed(self) -> bool | None:
|
||||||
"""Return if the cover is closed."""
|
"""Return if the cover is closed."""
|
||||||
if self._is_open_close_only():
|
if self._is_open_close_only():
|
||||||
|
if (
|
||||||
|
"state" not in self.fibaro_device.properties
|
||||||
|
or self.fibaro_device.properties.state.lower() == "unknown"
|
||||||
|
):
|
||||||
|
return None
|
||||||
return self.fibaro_device.properties.state.lower() == "closed"
|
return self.fibaro_device.properties.state.lower() == "closed"
|
||||||
|
|
||||||
if self.current_cover_position is None:
|
if self.current_cover_position is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user