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

+4 -4
View File
@@ -124,11 +124,11 @@ class Sensor(ZhaEntity):
return self._state
@callback
def async_set_state(self, state):
def async_set_state(self, attr_id, attr_name, value):
"""Handle state update from channel."""
if state is not None:
state = self.formatter(state)
self._state = state
if value is not None:
value = self.formatter(value)
self._state = value
self.async_schedule_update_ha_state()
@callback