Bump up ZHA dependencies (#26746)

* Update ZHA to track zigpy changes.
* Update ZHA dependencies.
* Update tests.
* Make coverage happy again.
This commit is contained in:
Alexei Chetroi authored and GitHub committed 2019-09-23 13:35:27 -04:00
1 parent 911d289333
commit 9c0fbfd101
13 files changed
+30 -41

No files matched your search

+1 -1
View File
@@ -310,7 +310,7 @@ class ZHAGateway:
@callback
def async_device_became_available(
self, sender, is_reply, profile, cluster, src_ep, dst_ep, tsn, command_id, args
self, sender, profile, cluster, src_ep, dst_ep, message
):
"""Handle tasks when a device becomes available."""
self.async_update_device(sender)
+3 -15
View File
@@ -9,9 +9,7 @@ https://home-assistant.io/components/zha/
def apply_application_controller_patch(zha_gateway):
"""Apply patches to ZHA objects."""
# Patch handle_message until zigpy can provide an event here
def handle_message(
sender, is_reply, profile, cluster, src_ep, dst_ep, tsn, command_id, args
):
def handle_message(sender, profile, cluster, src_ep, dst_ep, message):
"""Handle message from a device."""
if (
not sender.initializing
@@ -19,18 +17,8 @@ def apply_application_controller_patch(zha_gateway):
and not zha_gateway.devices[sender.ieee].available
):
zha_gateway.async_device_became_available(
sender,
is_reply,
profile,
cluster,
src_ep,
dst_ep,
tsn,
command_id,
args,
sender, profile, cluster, src_ep, dst_ep, message
)
return sender.handle_message(
is_reply, profile, cluster, src_ep, dst_ep, tsn, command_id, args
)
return sender.handle_message(profile, cluster, src_ep, dst_ep, message)
zha_gateway.application_controller.handle_message = handle_message
+4 -4
View File
@@ -4,11 +4,11 @@
"config_flow": true,
"documentation": "https://www.home-assistant.io/components/zha",
"requirements": [
"bellows-homeassistant==0.9.1",
"bellows-homeassistant==0.10.0",
"zha-quirks==0.0.23",
"zigpy-deconz==0.3.0",
"zigpy-homeassistant==0.8.0",
"zigpy-xbee-homeassistant==0.4.0",
"zigpy-deconz==0.4.0",
"zigpy-homeassistant==0.9.0",
"zigpy-xbee-homeassistant==0.5.0",
"zigpy-zigate==0.3.1"
],
"dependencies": [],