Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions tests/test_tuya_thermostat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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(
Expand Down
4 changes: 3 additions & 1 deletion zhaquirks/tuya/tuya_thermostat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading