Bump up ZHA dependecy (#35521)

* Bump up ZHA dependecy
* Fix tests.
This commit is contained in:
Alexei Chetroi authored and GitHub committed 2020-05-11 20:22:27 -04:00
1 parent 71b797faf2
commit 2f73361381
4 files changed
+7 -3

No files matched your search

+4
View File
@@ -48,6 +48,9 @@ class FakeEndpoint:
patch_cluster(cluster)
self.out_clusters[cluster_id] = cluster
reply = AsyncMock(return_value=[0])
request = AsyncMock(return_value=[0])
@property
def __class__(self):
"""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()]
hdr = make_zcl_header(zcl_f.Command.Report_Attributes)
hdr.frame_control.disable_default_response = True
cluster.handle_message(hdr, [attrs])
await hass.async_block_till_done()