Remove ZHA attribute listening channel (#32468)
* remove AttributeListeningChannel * pull sleeps * update signature to fix pylint
This commit is contained in:
1 parent
7f91501a36
commit
20333703c5
21 files changed
+124
-108
No files matched your search
@@ -103,9 +103,9 @@ class ZhaDoorLock(ZhaEntity, LockDevice):
|
||||
await self.async_get_state()
|
||||
|
||||
@callback
|
||||
def async_set_state(self, state):
|
||||
def async_set_state(self, attr_id, attr_name, value):
|
||||
"""Handle state update from channel."""
|
||||
self._state = VALUE_TO_STATE.get(state, self._state)
|
||||
self._state = VALUE_TO_STATE.get(value, self._state)
|
||||
self.async_schedule_update_ha_state()
|
||||
|
||||
async def async_get_state(self, from_cache=True):
|
||||
|
||||
Reference in new issue
Block a user