Fix callback and async (#31281)
* Fix callback and async * Fix a return * Fix test * Fix mqtt tests * Fix some more callbacks
This commit is contained in:
1 parent
ee602e40a6
commit
e9e44dbd97
90 files changed
+627
-883
No files matched your search
@@ -125,6 +125,7 @@ class BinarySensor(ZhaEntity, BinarySensorDevice):
|
||||
"""Return device class from component DEVICE_CLASSES."""
|
||||
return self._device_class
|
||||
|
||||
@callback
|
||||
def async_set_state(self, state):
|
||||
"""Set the state."""
|
||||
self._state = bool(state)
|
||||
|
||||
Reference in new issue
Block a user