From 658b8317b125ec8abf9104ef3ae21df4bbb44304 Mon Sep 17 00:00:00 2001 From: "David F. Mulcahey" Date: Thu, 26 Dec 2019 16:14:26 -0500 Subject: [PATCH 1/2] fix custom IasZone cluster (#226) --- zhaquirks/smartthings/moisturev4.py | 4 ++-- zhaquirks/xiaomi/aqara/wleak_aq1.py | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/zhaquirks/smartthings/moisturev4.py b/zhaquirks/smartthings/moisturev4.py index d85e61fff2..5c0098335b 100755 --- a/zhaquirks/smartthings/moisturev4.py +++ b/zhaquirks/smartthings/moisturev4.py @@ -1,6 +1,6 @@ """Device handler for smartthings moistureV4 sensor.""" from zigpy.profiles import zha -from zigpy.quirks import CustomDevice +from zigpy.quirks import CustomCluster, CustomDevice from zigpy.zcl.clusters.general import Basic, BinaryInput, Identify, Ota, PollControl from zigpy.zcl.clusters.measurement import TemperatureMeasurement from zigpy.zcl.clusters.security import IasZone @@ -18,7 +18,7 @@ ) -class CustomIasZone(IasZone): +class CustomIasZone(CustomCluster, IasZone): """Custom IasZone cluster.""" MOISTURE_TYPE = 0x002A diff --git a/zhaquirks/xiaomi/aqara/wleak_aq1.py b/zhaquirks/xiaomi/aqara/wleak_aq1.py index 6ab33aa78f..8d1f8aaa28 100644 --- a/zhaquirks/xiaomi/aqara/wleak_aq1.py +++ b/zhaquirks/xiaomi/aqara/wleak_aq1.py @@ -1,9 +1,9 @@ """Xiaomi aqara leak sensor device.""" from zigpy.profiles import zha +from zigpy.quirks import CustomCluster from zigpy.zcl.clusters.general import Identify, Ota from zigpy.zcl.clusters.security import IasZone -from .. import LUMI, BasicCluster, PowerConfigurationCluster, XiaomiCustomDevice from ...const import ( DEVICE_TYPE, ENDPOINTS, @@ -12,9 +12,10 @@ OUTPUT_CLUSTERS, PROFILE_ID, ) +from .. import LUMI, BasicCluster, PowerConfigurationCluster, XiaomiCustomDevice -class CustomIasZone(IasZone): +class CustomIasZone(CustomCluster, IasZone): """Custom IasZone cluster.""" MOISTURE_TYPE = 0x002A From 700061750320a740ac8ac3d2b404c14e065bb1b4 Mon Sep 17 00:00:00 2001 From: David Mulcahey Date: Thu, 26 Dec 2019 16:16:45 -0500 Subject: [PATCH 2/2] bump version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3a8258a5eb..f6355a646b 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import find_packages, setup -VERSION = "0.0.29" +VERSION = "0.0.30" def readme():