mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +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
|
@property
|
||||||
def is_closed(self):
|
def is_closed(self):
|
||||||
"""Return if the cover is closed."""
|
"""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()
|
return self._device.is_closed()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user