Allow multiple attribute reads in ZHA (#32498)

* multi attribute reads for lights

* catch specific exceptions

* get attributes

* fix mains powered update

* add guards and use get_attributes

* use debug for read failures

* cleanup

* update return value for read_attributes

* fix on with timed off
This commit is contained in:
David F. Mulcahey authored and GitHub committed 2020-03-07 07:33:59 -05:00
1 parent dd91b51435
commit e52542c4d7
14 files changed
+136 -78

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ def patch_cluster(cluster):
cluster.configure_reporting = CoroutineMock(return_value=[0])
cluster.deserialize = Mock()
cluster.handle_cluster_request = Mock()
cluster.read_attributes = CoroutineMock()
cluster.read_attributes = CoroutineMock(return_value=[{}, {}])
cluster.read_attributes_raw = Mock()
cluster.unbind = CoroutineMock(return_value=[0])
cluster.write_attributes = CoroutineMock(return_value=[0])