Bump up ZHA dependencies (#52374)

* Bump up ZHA dependencies

* Fix broken tests

* Update tests/components/zha/common.py

Co-authored-by: Franck Nijhof <git@frenck.dev>

Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
Alexei Chetroi 2021-07-01 14:05:55 -04:00 committed by GitHub
parent 520b500165
commit 8e846164a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 8 deletions

View File

@ -7,10 +7,10 @@
"bellows==0.25.0",
"pyserial==3.5",
"pyserial-asyncio==0.5",
"zha-quirks==0.0.57",
"zha-quirks==0.0.58",
"zigpy-cc==0.5.2",
"zigpy-deconz==0.12.0",
"zigpy==0.34.0",
"zigpy==0.35.0",
"zigpy-xbee==0.13.0",
"zigpy-zigate==0.7.3",
"zigpy-znp==0.5.1"

View File

@ -2431,7 +2431,7 @@ zengge==0.2
zeroconf==0.32.0
# homeassistant.components.zha
zha-quirks==0.0.57
zha-quirks==0.0.58
# homeassistant.components.zhong_hong
zhong_hong_hvac==1.0.9
@ -2455,7 +2455,7 @@ zigpy-zigate==0.7.3
zigpy-znp==0.5.1
# homeassistant.components.zha
zigpy==0.34.0
zigpy==0.35.0
# homeassistant.components.zoneminder
zm-py==0.5.2

View File

@ -1334,7 +1334,7 @@ zeep[async]==4.0.0
zeroconf==0.32.0
# homeassistant.components.zha
zha-quirks==0.0.57
zha-quirks==0.0.58
# homeassistant.components.zha
zigpy-cc==0.5.2
@ -1352,7 +1352,7 @@ zigpy-zigate==0.7.3
zigpy-znp==0.5.1
# homeassistant.components.zha
zigpy==0.34.0
zigpy==0.35.0
# homeassistant.components.zwave_js
zwave-js-server-python==0.27.0

View File

@ -40,8 +40,9 @@ class FakeEndpoint:
if _patch_cluster:
patch_cluster(cluster)
self.in_clusters[cluster_id] = cluster
if hasattr(cluster, "ep_attribute"):
setattr(self, cluster.ep_attribute, cluster)
ep_attribute = cluster.ep_attribute
if ep_attribute:
setattr(self, ep_attribute, cluster)
def add_output_cluster(self, cluster_id, _patch_cluster=True):
"""Add an output cluster."""