Improve typing in fans and locks (#73901)
This commit is contained in:
parent
ff7d840a6c
commit
3c82c718cb
18 changed files with 27 additions and 26 deletions
|
@ -189,12 +189,12 @@ class MqttLock(MqttEntity, LockEntity):
|
|||
return self._state
|
||||
|
||||
@property
|
||||
def assumed_state(self):
|
||||
def assumed_state(self) -> bool:
|
||||
"""Return true if we do optimistic updates."""
|
||||
return self._optimistic
|
||||
|
||||
@property
|
||||
def supported_features(self):
|
||||
def supported_features(self) -> int:
|
||||
"""Flag supported features."""
|
||||
return LockEntityFeature.OPEN if CONF_PAYLOAD_OPEN in self._config else 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue