mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Fix bug in fibaro cover (#89502)
This commit is contained in:
parent
7cb4620671
commit
1e7f58d859
@ -94,9 +94,9 @@ class FibaroCover(FibaroDevice, CoverEntity):
|
|||||||
"""Return if the cover is closed."""
|
"""Return if the cover is closed."""
|
||||||
if self._is_open_close_only():
|
if self._is_open_close_only():
|
||||||
state = self.fibaro_device.state
|
state = self.fibaro_device.state
|
||||||
if not state.has_value or state.str_value.lower() == "unknown":
|
if not state.has_value or state.str_value().lower() == "unknown":
|
||||||
return None
|
return None
|
||||||
return state.str_value.lower() == "closed"
|
return state.str_value().lower() == "closed"
|
||||||
|
|
||||||
if self.current_cover_position is None:
|
if self.current_cover_position is None:
|
||||||
return None
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user