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 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):
|
||||
|
||||
Reference in new issue
Block a user