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

@@ -103,9 +103,9 @@ class BinarySensor(ZhaEntity, BinarySensorDevice):
return self._device_class
@callback
def async_set_state(self, state):
def async_set_state(self, attr_id, attr_name, value):
"""Set the state."""
self._state = bool(state)
self._state = bool(value)
self.async_schedule_update_ha_state()
async def async_update(self):