zha: Add support for XBee radios (#12205)
* zha: Add support for xbee radios * Lint
This commit is contained in:
parent
844337ca42
commit
c7dad113d9
3 changed files with 30 additions and 8 deletions
|
@ -78,7 +78,7 @@ class BinarySensor(zha.Entity, BinarySensorDevice):
|
|||
"""Return the class of this device, from component DEVICE_CLASSES."""
|
||||
return self._device_class
|
||||
|
||||
def cluster_command(self, aps_frame, tsn, command_id, args):
|
||||
def cluster_command(self, tsn, command_id, args):
|
||||
"""Handle commands received to this cluster."""
|
||||
if command_id == 0:
|
||||
self._state = args[0] & 3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue