diff --git a/tests/test_tuya_thermostat.py b/tests/test_tuya_thermostat.py index 5bac81bf61..f98185fb67 100644 --- a/tests/test_tuya_thermostat.py +++ b/tests/test_tuya_thermostat.py @@ -78,6 +78,12 @@ Thermostat.AttributeDefs.system_mode, Thermostat.SystemMode.Heat, ), # Set to heat, dp 1 + ( + "_TZE284_cvub6xbb", + b"\t\x13\x02\x00\x06\x01\x01\x00\x01\x01", + Thermostat.AttributeDefs.system_mode, + Thermostat.SystemMode.Heat, + ), # Set to heat, dp 1 ], ) async def test_handle_get_data(zigpy_device_from_v2_quirk, manuf, msg, attr, value): @@ -144,6 +150,12 @@ async def test_tuya_no_mcu_version(zigpy_device_from_v2_quirk): 19, -99, ), # Local temp calibration to -9.9, dp 19 + ( + "_TZE284_cvub6xbb", + b"\t\x1d\x02\x00\x10\x13\x02\x00\x04\xff\xff\xff\x9d", + 19, + -99, + ), # Local temp calibration to -9.9, dp 19 ], ) async def test_handle_get_data_tmcu( diff --git a/zhaquirks/tuya/tuya_thermostat.py b/zhaquirks/tuya/tuya_thermostat.py index 233094a21c..890c3670b3 100644 --- a/zhaquirks/tuya/tuya_thermostat.py +++ b/zhaquirks/tuya/tuya_thermostat.py @@ -482,7 +482,9 @@ def handle_mcu_version_response( # Beok TGM50-ZB-WPB ( - TuyaQuirkBuilder("_TZE204_cvub6xbb", "TS0601") + TuyaQuirkBuilder() + .applies_to("_TZE204_cvub6xbb", "TS0601") + .applies_to("_TZE284_cvub6xbb", "TS0601") .tuya_dp( dp_id=1, ep_attribute=TuyaThermostat.ep_attribute,