From 2ba514253c4981062853f3e1981903d3e4aa803c Mon Sep 17 00:00:00 2001 From: "David F. Mulcahey" Date: Mon, 2 Mar 2020 11:26:37 -0500 Subject: [PATCH] Bump ZHA Quirks to 0.0.34 (#32401) * bump zha quirks version * add required parts to support alt opple remote --- .../components/zha/core/channels/manufacturerspecific.py | 8 ++++++++ homeassistant/components/zha/manifest.json | 2 +- homeassistant/components/zha/strings.json | 8 ++++++++ requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 5 files changed, 19 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/zha/core/channels/manufacturerspecific.py b/homeassistant/components/zha/core/channels/manufacturerspecific.py index 90f81513ec4..2f30421822c 100644 --- a/homeassistant/components/zha/core/channels/manufacturerspecific.py +++ b/homeassistant/components/zha/core/channels/manufacturerspecific.py @@ -39,6 +39,14 @@ class OsramButton(ZigbeeChannel): REPORT_CONFIG = [] +@registries.CHANNEL_ONLY_CLUSTERS.register(0xFCC0) +@registries.ZIGBEE_CHANNEL_REGISTRY.register(0xFCC0) +class OppleRemote(ZigbeeChannel): + """Opple button channel.""" + + REPORT_CONFIG = [] + + @registries.ZIGBEE_CHANNEL_REGISTRY.register( registries.SMARTTHINGS_ACCELERATION_CLUSTER ) diff --git a/homeassistant/components/zha/manifest.json b/homeassistant/components/zha/manifest.json index 786de20f3da..01a204a282c 100644 --- a/homeassistant/components/zha/manifest.json +++ b/homeassistant/components/zha/manifest.json @@ -5,7 +5,7 @@ "documentation": "https://www.home-assistant.io/integrations/zha", "requirements": [ "bellows-homeassistant==0.13.2", - "zha-quirks==0.0.33", + "zha-quirks==0.0.34", "zigpy-cc==0.1.0", "zigpy-deconz==0.7.0", "zigpy-homeassistant==0.14.0", diff --git a/homeassistant/components/zha/strings.json b/homeassistant/components/zha/strings.json index a41f6de24be..a015ca30770 100644 --- a/homeassistant/components/zha/strings.json +++ b/homeassistant/components/zha/strings.json @@ -31,6 +31,14 @@ "remote_button_triple_press": "\"{subtype}\" button triple clicked", "remote_button_quadruple_press": "\"{subtype}\" button quadruple clicked", "remote_button_quintuple_press": "\"{subtype}\" button quintuple clicked", + "remote_button_alt_short_press": "\"{subtype}\" button pressed (Alternate mode)", + "remote_button_alt_short_release": "\"{subtype}\" button released (Alternate mode)", + "remote_button_alt_long_press": "\"{subtype}\" button continuously pressed (Alternate mode)", + "remote_button_alt_long_release": "\"{subtype}\" button released after long press (Alternate mode)", + "remote_button_alt_double_press": "\"{subtype}\" button double clicked (Alternate mode)", + "remote_button_alt_triple_press": "\"{subtype}\" button triple clicked (Alternate mode)", + "remote_button_alt_quadruple_press": "\"{subtype}\" button quadruple clicked (Alternate mode)", + "remote_button_alt_quintuple_press": "\"{subtype}\" button quintuple clicked (Alternate mode)", "device_rotated": "Device rotated \"{subtype}\"", "device_shaken": "Device shaken", "device_slid": "Device slid \"{subtype}\"", diff --git a/requirements_all.txt b/requirements_all.txt index 5c96ae181b4..247ab2b9dac 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2140,7 +2140,7 @@ zengge==0.2 zeroconf==0.24.4 # homeassistant.components.zha -zha-quirks==0.0.33 +zha-quirks==0.0.34 # homeassistant.components.zhong_hong zhong_hong_hvac==1.0.9 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index b9b035610e8..e16665d0913 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -738,7 +738,7 @@ yahooweather==0.10 zeroconf==0.24.4 # homeassistant.components.zha -zha-quirks==0.0.33 +zha-quirks==0.0.34 # homeassistant.components.zha zigpy-cc==0.1.0