Add new lock states to tedee integration (#117108)

This commit is contained in:
Josef Zweck 2024-05-27 21:04:44 +02:00 committed by GitHub
parent d9ce4128c0
commit c349797938
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,6 +64,16 @@ class TedeeLockEntity(TedeeEntity, LockEntity):
"""Return true if lock is unlocking."""
return self._lock.state == TedeeLockState.UNLOCKING
@property
def is_open(self) -> bool:
"""Return true if lock is open."""
return self._lock.state == TedeeLockState.PULLED
@property
def is_opening(self) -> bool:
"""Return true if lock is opening."""
return self._lock.state == TedeeLockState.PULLING
@property
def is_locking(self) -> bool:
"""Return true if lock is locking."""