Bump up ZHA dependecy (#35521)

* Bump up ZHA dependecy
* Fix tests.
This commit is contained in:
Alexei Chetroi 2020-05-11 20:22:27 -04:00 committed by GitHub
parent 71b797faf2
commit 2f73361381
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View File

@ -9,7 +9,7 @@
"zha-quirks==0.0.39", "zha-quirks==0.0.39",
"zigpy-cc==0.4.2", "zigpy-cc==0.4.2",
"zigpy-deconz==0.9.2", "zigpy-deconz==0.9.2",
"zigpy==0.20.1", "zigpy==0.20.3",
"zigpy-xbee==0.12.1", "zigpy-xbee==0.12.1",
"zigpy-zigate==0.6.1" "zigpy-zigate==0.6.1"
], ],

View File

@ -2251,7 +2251,7 @@ zigpy-xbee==0.12.1
zigpy-zigate==0.6.1 zigpy-zigate==0.6.1
# homeassistant.components.zha # homeassistant.components.zha
zigpy==0.20.1 zigpy==0.20.3
# homeassistant.components.zoneminder # homeassistant.components.zoneminder
zm-py==0.4.0 zm-py==0.4.0

View File

@ -906,4 +906,4 @@ zigpy-xbee==0.12.1
zigpy-zigate==0.6.1 zigpy-zigate==0.6.1
# homeassistant.components.zha # homeassistant.components.zha
zigpy==0.20.1 zigpy==0.20.3

View File

@ -48,6 +48,9 @@ class FakeEndpoint:
patch_cluster(cluster) patch_cluster(cluster)
self.out_clusters[cluster_id] = cluster self.out_clusters[cluster_id] = cluster
reply = AsyncMock(return_value=[0])
request = AsyncMock(return_value=[0])
@property @property
def __class__(self): def __class__(self):
"""Fake being Zigpy endpoint.""" """Fake being Zigpy endpoint."""
@ -136,6 +139,7 @@ async def send_attributes_report(hass, cluster: int, attributes: dict):
""" """
attrs = [make_attribute(attrid, value) for attrid, value in attributes.items()] attrs = [make_attribute(attrid, value) for attrid, value in attributes.items()]
hdr = make_zcl_header(zcl_f.Command.Report_Attributes) hdr = make_zcl_header(zcl_f.Command.Report_Attributes)
hdr.frame_control.disable_default_response = True
cluster.handle_message(hdr, [attrs]) cluster.handle_message(hdr, [attrs])
await hass.async_block_till_done() await hass.async_block_till_done()