From 67fbd78959b206f2b997add9592a7ce30ef96d22 Mon Sep 17 00:00:00 2001 From: Thilo Bangert Date: Sat, 28 Dec 2024 12:05:01 +0100 Subject: [PATCH] add support for _TZE204_dapwryy7 --- tests/test_tuya_motion.py | 1 + zhaquirks/tuya/ts0601_motion.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/test_tuya_motion.py b/tests/test_tuya_motion.py index 10e1d08fa7..bfcb2bb3ce 100644 --- a/tests/test_tuya_motion.py +++ b/tests/test_tuya_motion.py @@ -35,6 +35,7 @@ ("_TZE200_ztc6ggyl", "TS0601", ZCL_TUYA_MOTION), ("_TZE204_ztc6ggyl", "TS0601", ZCL_TUYA_MOTION), ("_TZE204_ztqnh5cg", "TS0601", ZCL_TUYA_MOTION), + ("_TZE204_dapwryy7", "TS0601", ZCL_TUYA_MOTION), ], ) async def test_tuya_motion_quirk_occ(zigpy_device_from_v2_quirk, model, manuf, occ_msg): diff --git a/zhaquirks/tuya/ts0601_motion.py b/zhaquirks/tuya/ts0601_motion.py index 29b9dee426..7a4a67a214 100644 --- a/zhaquirks/tuya/ts0601_motion.py +++ b/zhaquirks/tuya/ts0601_motion.py @@ -185,6 +185,7 @@ def _update_attribute(self, attrid: int | t.uint16_t, value: Any) -> None: .applies_to("_TZE200_ztc6ggyl", "TS0601") .applies_to("_TZE204_ztc6ggyl", "TS0601") .applies_to("_TZE204_ztqnh5cg", "TS0601") + .applies_to("_TZE204_dapwryy7", "TS0601") .tuya_dp( dp_id=1, ep_attribute=TuyaOccupancySensing.ep_attribute,