fix cluster configuration (#26494)

This commit is contained in:
David F. Mulcahey 2019-09-07 10:39:56 -04:00 committed by Alexei Chetroi
parent ece023bfee
commit 5237bd3fd1

View file

@ -202,7 +202,7 @@ class ZigbeeChannel(LogMixin):
# Xiaomi devices don't need this and it disrupts pairing # Xiaomi devices don't need this and it disrupts pairing
if self._zha_device.manufacturer != "LUMI": if self._zha_device.manufacturer != "LUMI":
await self.bind() await self.bind()
if self.cluster.cluster_id not in self.cluster.endpoint.out_clusters: if self.cluster.cluster_id in self.cluster.endpoint.in_clusters:
for report_config in self._report_config: for report_config in self._report_config:
await self.configure_reporting( await self.configure_reporting(
report_config["attr"], report_config["config"] report_config["attr"], report_config["config"]