zha: Update to bellows 0.5.0+zigpy (#12187)

This commit is contained in:
Russell Cloran authored and Paulus Schoutsen committed 2018-02-05 16:05:19 -08:00
1 parent 98b47cecbd
commit f58e5f442d
6 files changed
+17 -11

No files matched your search

@@ -32,7 +32,7 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
if discovery_info is None:
return
from bellows.zigbee.zcl.clusters.security import IasZone
from zigpy.zcl.clusters.security import IasZone
in_clusters = discovery_info['in_clusters']
@@ -63,7 +63,7 @@ class BinarySensor(zha.Entity, BinarySensorDevice):
"""Initialize the ZHA binary sensor."""
super().__init__(**kwargs)
self._device_class = device_class
from bellows.zigbee.zcl.clusters.security import IasZone
from zigpy.zcl.clusters.security import IasZone
self._ias_zone_cluster = self._in_clusters[IasZone.cluster_id]
@property