mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Fix KNX cover state return open when unknown (#44926)
This commit is contained in:
parent
e35e460e69
commit
30189fb5d5
@ -79,6 +79,9 @@ class KNXCover(KnxEntity, CoverEntity):
|
||||
@property
|
||||
def is_closed(self):
|
||||
"""Return if the cover is closed."""
|
||||
# state shall be "unknown" when xknx travelcalculator is not initialized
|
||||
if self._device.current_position() is None:
|
||||
return None
|
||||
return self._device.is_closed()
|
||||
|
||||
@property
|
||||
|
Loading…
x
Reference in New Issue
Block a user