Remove ZHA attribute listening channel (#32468)

* remove AttributeListeningChannel
* pull sleeps
* update signature to fix pylint
This commit is contained in:
Alexei Chetroi authored and GitHub committed 2020-03-04 13:11:53 -05:00
1 parent 7f91501a36
commit 20333703c5
21 files changed
+124 -108

No files matched your search

+2 -2
View File
@@ -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):