Fix callback and async (#31281)
* Fix callback and async * Fix a return * Fix test * Fix mqtt tests * Fix some more callbacks
This commit is contained in:
parent
ee602e40a6
commit
e9e44dbd97
90 changed files with 627 additions and 883 deletions
|
@ -125,6 +125,7 @@ class ZhaDoorLock(ZhaEntity, LockDevice):
|
|||
await super().async_update()
|
||||
await self.async_get_state()
|
||||
|
||||
@callback
|
||||
def async_set_state(self, state):
|
||||
"""Handle state update from channel."""
|
||||
self._state = VALUE_TO_STATE.get(state, self._state)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue