Update mypy to 0.981 (#79115)
This commit is contained in:
parent
1f6d19bb99
commit
e8156adb13
15 changed files with 75 additions and 75 deletions
|
@ -49,25 +49,25 @@ class EsphomeLock(EsphomeEntity[LockInfo, LockEntityState], LockEntity):
|
|||
return self._static_info.code_format
|
||||
return None
|
||||
|
||||
@property # type: ignore[misc]
|
||||
@property
|
||||
@esphome_state_property
|
||||
def is_locked(self) -> bool | None:
|
||||
"""Return true if the lock is locked."""
|
||||
return self._state.state == LockState.LOCKED
|
||||
|
||||
@property # type: ignore[misc]
|
||||
@property
|
||||
@esphome_state_property
|
||||
def is_locking(self) -> bool | None:
|
||||
"""Return true if the lock is locking."""
|
||||
return self._state.state == LockState.LOCKING
|
||||
|
||||
@property # type: ignore[misc]
|
||||
@property
|
||||
@esphome_state_property
|
||||
def is_unlocking(self) -> bool | None:
|
||||
"""Return true if the lock is unlocking."""
|
||||
return self._state.state == LockState.UNLOCKING
|
||||
|
||||
@property # type: ignore[misc]
|
||||
@property
|
||||
@esphome_state_property
|
||||
def is_jammed(self) -> bool | None:
|
||||
"""Return true if the lock is jammed (incomplete locking)."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue