zha: Add support for XBee radios (#12205)

* zha: Add support for xbee radios

* Lint
This commit is contained in:
Russell Cloran 2018-02-06 10:46:28 -08:00 committed by Paulus Schoutsen
parent 844337ca42
commit c7dad113d9
3 changed files with 30 additions and 8 deletions

View file

@ -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