mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Add new lock states to tedee integration (#117108)
This commit is contained in:
parent
d9ce4128c0
commit
c349797938
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user