Skip to content

Commit b5f163c

Browse files
authored
Update Tuya fixture for product ID IAYz2WK1th0cMLmL (home-assistant#154000)
1 parent 65540a3 commit b5f163c

File tree

4 files changed

+38
-74
lines changed

4 files changed

+38
-74
lines changed

tests/components/tuya/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
"wg2_tmwhss6ntjfc7prs", # https://github.com/home-assistant/core/issues/150662
231231
"wg2_v7owd9tzcaninc36", # https://github.com/orgs/home-assistant/discussions/539
232232
"wk_6kijc7nd", # https://github.com/home-assistant/core/issues/136513
233-
"wk_IAYz2WK1th0cMLmL", # https://github.com/orgs/home-assistant/discussions/842
233+
"wk_IAYz2WK1th0cMLmL", # https://github.com/home-assistant/core/issues/150077
234234
"wk_aqoouq7x", # https://github.com/home-assistant/core/issues/146263
235235
"wk_ccpwojhalfxryigz", # https://github.com/home-assistant/core/issues/145551
236236
"wk_cpmgn2cf", # https://github.com/orgs/home-assistant/discussions/684

tests/components/tuya/fixtures/wk_IAYz2WK1th0cMLmL.json

Lines changed: 25 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"online": true,
1111
"sub": false,
1212
"time_zone": "+01:00",
13-
"active_time": "2018-12-04T17:50:07+00:00",
14-
"create_time": "2018-12-04T17:50:07+00:00",
15-
"update_time": "2025-09-03T07:44:16+00:00",
13+
"active_time": "2022-11-15T08:35:43+00:00",
14+
"create_time": "2022-11-15T08:35:43+00:00",
15+
"update_time": "2022-11-15T08:35:43+00:00",
1616
"function": {
1717
"switch": {
1818
"type": "Boolean",
@@ -22,6 +22,16 @@
2222
"type": "Boolean",
2323
"value": {}
2424
},
25+
"temp_set": {
26+
"type": "Integer",
27+
"value": {
28+
"unit": "\u2103",
29+
"min": 10,
30+
"max": 70,
31+
"scale": 1,
32+
"step": 5
33+
}
34+
},
2535
"eco": {
2636
"type": "Boolean",
2737
"value": {}
@@ -35,26 +45,14 @@
3545
"scale": 0,
3646
"step": 5
3747
}
48+
}
49+
},
50+
"status_range": {
51+
"eco": {
52+
"type": "Boolean",
53+
"value": {}
3854
},
39-
"Mode": {
40-
"type": "Enum",
41-
"value": {
42-
"range": ["0", "1"]
43-
}
44-
},
45-
"program": {
46-
"type": "Raw",
47-
"value": {
48-
"maxlen": 128
49-
}
50-
},
51-
"tempSwitch": {
52-
"type": "Enum",
53-
"value": {
54-
"range": ["0", "1"]
55-
}
56-
},
57-
"TempSet": {
55+
"temp_set": {
5856
"type": "Integer",
5957
"value": {
6058
"unit": "\u2103",
@@ -63,12 +61,6 @@
6361
"scale": 1,
6462
"step": 5
6563
}
66-
}
67-
},
68-
"status_range": {
69-
"eco": {
70-
"type": "Boolean",
71-
"value": {}
7264
},
7365
"switch": {
7466
"type": "Boolean",
@@ -87,43 +79,14 @@
8779
"scale": 0,
8880
"step": 5
8981
}
90-
},
91-
"floorTemp": {
92-
"type": "Integer",
93-
"value": {
94-
"max": 198,
95-
"min": 0,
96-
"scale": 0,
97-
"step": 5,
98-
"unit": "\u2103"
99-
}
100-
},
101-
"floortempFunction": {
102-
"type": "Boolean",
103-
"value": {}
104-
},
105-
"TempSet": {
106-
"type": "Integer",
107-
"value": {
108-
"unit": "\u2103",
109-
"min": 10,
110-
"max": 70,
111-
"scale": 1,
112-
"step": 5
113-
}
11482
}
11583
},
11684
"status": {
117-
"switch": false,
118-
"upper_temp": 55,
119-
"eco": true,
120-
"child_lock": false,
121-
"Mode": 1,
122-
"program": "DwYoDwceHhQoORceOhceOxceAAkoAAoeHhQoORceOhceOxceAAkoAAoeHhQoORceOhceOxce",
123-
"floorTemp": 0,
124-
"tempSwitch": 0,
125-
"floortempFunction": true,
126-
"TempSet": 41
85+
"switch": true,
86+
"temp_set": 46,
87+
"upper_temp": 45,
88+
"eco": false,
89+
"child_lock": true
12790
},
12891
"set_up": true,
12992
"support_local": true

tests/components/tuya/snapshots/test_climate.ambr

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -383,9 +383,9 @@
383383
<HVACMode.OFF: 'off'>,
384384
<HVACMode.HEAT_COOL: 'heat_cool'>,
385385
]),
386-
'max_temp': 35,
387-
'min_temp': 7,
388-
'target_temp_step': 1.0,
386+
'max_temp': 7.0,
387+
'min_temp': 1.0,
388+
'target_temp_step': 0.5,
389389
}),
390390
'config_entry_id': <ANY>,
391391
'config_subentry_id': <ANY>,
@@ -410,7 +410,7 @@
410410
'platform': 'tuya',
411411
'previous_unique_id': None,
412412
'suggested_object_id': None,
413-
'supported_features': <ClimateEntityFeature: 384>,
413+
'supported_features': <ClimateEntityFeature: 385>,
414414
'translation_key': None,
415415
'unique_id': 'tuya.LmLMc0ht1KW2zYAIkw',
416416
'unit_of_measurement': None,
@@ -419,23 +419,24 @@
419419
# name: test_platform_setup_and_discovery[climate.el_termostato_de_la_cocina-state]
420420
StateSnapshot({
421421
'attributes': ReadOnlyDict({
422-
'current_temperature': 5.5,
422+
'current_temperature': 4.5,
423423
'friendly_name': 'El termostato de la cocina',
424424
'hvac_modes': list([
425425
<HVACMode.OFF: 'off'>,
426426
<HVACMode.HEAT_COOL: 'heat_cool'>,
427427
]),
428-
'max_temp': 35,
429-
'min_temp': 7,
430-
'supported_features': <ClimateEntityFeature: 384>,
431-
'target_temp_step': 1.0,
428+
'max_temp': 7.0,
429+
'min_temp': 1.0,
430+
'supported_features': <ClimateEntityFeature: 385>,
431+
'target_temp_step': 0.5,
432+
'temperature': 4.6,
432433
}),
433434
'context': <ANY>,
434435
'entity_id': 'climate.el_termostato_de_la_cocina',
435436
'last_changed': <ANY>,
436437
'last_reported': <ANY>,
437438
'last_updated': <ANY>,
438-
'state': 'off',
439+
'state': 'heat_cool',
439440
})
440441
# ---
441442
# name: test_platform_setup_and_discovery[climate.empore-entry]

tests/components/tuya/snapshots/test_switch.ambr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3238,7 +3238,7 @@
32383238
'last_changed': <ANY>,
32393239
'last_reported': <ANY>,
32403240
'last_updated': <ANY>,
3241-
'state': 'off',
3241+
'state': 'on',
32423242
})
32433243
# ---
32443244
# name: test_platform_setup_and_discovery[switch.elivco_kitchen_socket_child_lock-entry]

0 commit comments

Comments
 (0)