1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-08 17:49:37 +01:00

Add Tuya test fixture files (#152795)

This commit is contained in:
epenet
2025-09-23 10:44:36 +02:00
committed by GitHub
parent 38a5a3ed4b
commit a19e378447
26 changed files with 3890 additions and 0 deletions
+15
View File
@@ -22,12 +22,15 @@ DEVICE_MOCKS = [
"cl_ebt12ypvexnixvtf", # https://github.com/tuya/tuya-home-assistant/issues/754
"cl_g1cp07dsqnbdbbki", # https://github.com/home-assistant/core/issues/139966
"cl_qqdxfdht", # https://github.com/orgs/home-assistant/discussions/539
"cl_rD7uqAAgQOpSA2Rx", # https://github.com/home-assistant/core/issues/139966
"cl_zah67ekd", # https://github.com/home-assistant/core/issues/71242
"clkg_nhyj64w2", # https://github.com/home-assistant/core/issues/136055
"clkg_wltqkykhni0papzj", # https://github.com/home-assistant/core/issues/151635
"clkg_xqvhthwkbmp3aghs", # https://github.com/home-assistant/core/issues/139966
"co2bj_yakol79dibtswovc", # https://github.com/home-assistant/core/issues/151784
"co2bj_yrr3eiyiacm31ski", # https://github.com/orgs/home-assistant/discussions/842
"cobj_hcdy5zrq3ikzthws", # https://github.com/orgs/home-assistant/discussions/482
"cs_b9oyi2yofflroq1g", # https://github.com/home-assistant/core/issues/139966
"cs_ipmyy4nigpqcnd8q", # https://github.com/home-assistant/core/pull/148726
"cs_ka2wfrdoogpvgzfi", # https://github.com/home-assistant/core/issues/119865
"cs_qhxmvae667uap4zh", # https://github.com/home-assistant/core/issues/141278
@@ -38,6 +41,7 @@ DEVICE_MOCKS = [
"cwwsq_wfkzyy0evslzsmoi", # https://github.com/home-assistant/core/issues/144745
"cwysj_akln8rb04cav403q", # https://github.com/home-assistant/core/pull/146599
"cwysj_z3rpyvznfcch99aa", # https://github.com/home-assistant/core/pull/146599
"cz_0fHWRe8ULjtmnBNd", # https://github.com/home-assistant/core/issues/139966
"cz_0g1fmqh6d5io7lcn", # https://github.com/home-assistant/core/issues/149704
"cz_2iepauebcvo74ujc", # https://github.com/home-assistant/core/issues/141278
"cz_2jxesipczks0kdct", # https://github.com/home-assistant/core/issues/147149
@@ -49,6 +53,8 @@ DEVICE_MOCKS = [
"cz_AiHXxAyyn7eAkLQY", # https://github.com/home-assistant/core/issues/150662
"cz_CHLZe9HQ6QIXujVN", # https://github.com/home-assistant/core/issues/149233
"cz_HBRBzv1UVBVfF6SL", # https://github.com/tuya/tuya-home-assistant/issues/754
"cz_IGzCi97RpN2Lf9cu", # https://github.com/home-assistant/core/issues/139966
"cz_PGEkBctAbtzKOZng", # https://github.com/home-assistant/core/issues/139966
"cz_anwgf2xugjxpkfxb", # https://github.com/orgs/home-assistant/discussions/539
"cz_cuhokdii7ojyw8k2", # https://github.com/home-assistant/core/issues/149704
"cz_dhto3y4uachr1wll", # https://github.com/orgs/home-assistant/discussions/169
@@ -62,10 +68,13 @@ DEVICE_MOCKS = [
"cz_ipabufmlmodje1ws", # https://github.com/home-assistant/core/issues/63978
"cz_iqhidxhhmgxk5eja", # https://github.com/home-assistant/core/issues/149233
"cz_jnbbxsb84gvvyfg5", # https://github.com/tuya/tuya-home-assistant/issues/754
"cz_mQUhiTg9kwydBFBd", # https://github.com/home-assistant/core/issues/139966
"cz_n8iVBAPLFKAAAszH", # https://github.com/home-assistant/core/issues/146164
"cz_nkb0fmtlfyqosnvk", # https://github.com/orgs/home-assistant/discussions/482
"cz_nx8rv6jpe1tsnffk", # https://github.com/home-assistant/core/issues/148347
"cz_piuensvr", # https://github.com/home-assistant/core/issues/139966
"cz_qm0iq4nqnrlzh4qc", # https://github.com/home-assistant/core/issues/141278
"cz_qxJSyTLEtX5WrzA9", # https://github.com/home-assistant/core/issues/139966
"cz_raceucn29wk2yawe", # https://github.com/tuya/tuya-home-assistant/issues/754
"cz_sb6bwb1n8ma2c5q4", # https://github.com/home-assistant/core/issues/141278
"cz_t0a4hwsf8anfsadp", # https://github.com/home-assistant/core/issues/149704
@@ -153,6 +162,7 @@ DEVICE_MOCKS = [
"mcs_7jIGJAymiH8OsFFb", # https://github.com/home-assistant/core/issues/108301
"mcs_8yhypbo7", # https://github.com/orgs/home-assistant/discussions/482
"mcs_hx5ztlztij4yxxvg", # https://github.com/home-assistant/core/issues/148347
"mcs_oxslv1c9", # https://github.com/home-assistant/core/issues/139966
"mcs_qxu3flpqjsc1kqu3", # https://github.com/home-assistant/core/issues/141278
"msp_3ddulzljdjjwkhoy", # https://github.com/orgs/home-assistant/discussions/262
"mzj_jlapoy5liocmtdvd", # https://github.com/home-assistant/core/issues/150662
@@ -168,6 +178,7 @@ DEVICE_MOCKS = [
"pir_wqz93nrdomectyoz", # https://github.com/home-assistant/core/issues/149704
"qccdz_7bvgooyjhiua1yyq", # https://github.com/home-assistant/core/issues/136207
"qn_5ls2jw49hpczwqng", # https://github.com/home-assistant/core/issues/149233
"qt_TtXKwTMwiPpURWLJ", # https://github.com/home-assistant/core/issues/139966
"qxj_fsea1lat3vuktbt6", # https://github.com/orgs/home-assistant/discussions/318
"qxj_is2indt9nlth6esa", # https://github.com/home-assistant/core/issues/136472
"qxj_xbwbniyt6bgws9ia", # https://github.com/orgs/home-assistant/discussions/823
@@ -205,6 +216,7 @@ DEVICE_MOCKS = [
"tyndj_pyakuuoc", # https://github.com/home-assistant/core/issues/149704
"wfcon_b25mh8sxawsgndck", # https://github.com/home-assistant/core/issues/149704
"wfcon_lieerjyy6l4ykjor", # https://github.com/home-assistant/core/issues/136055
"wfcon_plp0gnfcacdeqk5o", # https://github.com/home-assistant/core/issues/139966
"wg2_2gowdgni", # https://github.com/home-assistant/core/issues/150856
"wg2_haclbl0qkqlf2qds", # https://github.com/orgs/home-assistant/discussions/517
"wg2_nwxr8qcu4seltoro", # https://github.com/orgs/home-assistant/discussions/430
@@ -221,6 +233,8 @@ DEVICE_MOCKS = [
"wk_gogb05wrtredz3bs", # https://github.com/home-assistant/core/issues/136337
"wk_y5obtqhuztqsf2mj", # https://github.com/home-assistant/core/issues/139735
"wkcz_gc4b1mdw7kebtuyz", # https://github.com/home-assistant/core/issues/135617
"wkf_9xfjixap", # https://github.com/home-assistant/core/issues/139966
"wkf_p3dbf6qs", # https://github.com/home-assistant/core/issues/139966
"wnykq_kzwdw5bpxlbs9h9g", # https://github.com/orgs/home-assistant/discussions/842
"wnykq_npbbca46yiug8ysk", # https://github.com/orgs/home-assistant/discussions/539
"wnykq_om518smspsaltzdi", # https://github.com/home-assistant/core/issues/150662
@@ -230,6 +244,7 @@ DEVICE_MOCKS = [
"wsdcg_iv7hudlj", # https://github.com/home-assistant/core/issues/141278
"wsdcg_krlcihrpzpc8olw9", # https://github.com/orgs/home-assistant/discussions/517
"wsdcg_lf36y5nwb8jkxwgg", # https://github.com/orgs/home-assistant/discussions/539
"wsdcg_qrztc3ev", # https://github.com/home-assistant/core/issues/139966
"wsdcg_vtA4pDd6PLUZzXgZ", # https://github.com/orgs/home-assistant/discussions/482
"wsdcg_xr3htd96", # https://github.com/orgs/home-assistant/discussions/482
"wsdcg_yqiqbaldtr0i7mru", # https://github.com/home-assistant/core/issues/136223
@@ -0,0 +1,37 @@
{
"endpoint": "https://apigw.tuyaeu.com",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"name": "Kit-Blinds",
"category": "cl",
"product_id": "rD7uqAAgQOpSA2Rx",
"product_name": "Wi-Fi Curtian Switch",
"online": true,
"sub": false,
"time_zone": "+01:00",
"active_time": "2020-04-04T08:17:44+00:00",
"create_time": "2020-04-04T08:17:44+00:00",
"update_time": "2020-04-04T08:17:44+00:00",
"function": {
"control": {
"type": "Enum",
"value": {
"range": ["open", "stop", "close"]
}
}
},
"status_range": {
"control": {
"type": "Enum",
"value": {
"range": ["open", "close", "stop"]
}
}
},
"status": {
"control": "open"
},
"set_up": true,
"support_local": true
}
@@ -0,0 +1,114 @@
{
"endpoint": "https://apigw.tuyaeu.com",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"name": "Pergola",
"category": "clkg",
"product_id": "xqvhthwkbmp3aghs",
"product_name": "Curtain switch",
"online": true,
"sub": false,
"time_zone": "+02:00",
"active_time": "2023-05-15T12:00:44+00:00",
"create_time": "2023-05-15T12:00:44+00:00",
"update_time": "2023-05-15T12:00:44+00:00",
"function": {
"control": {
"type": "Enum",
"value": {
"range": ["open", "stop", "close"]
}
},
"percent_control": {
"type": "Integer",
"value": {
"unit": "%",
"min": 0,
"max": 100,
"scale": 0,
"step": 10
}
},
"cur_calibration": {
"type": "Enum",
"value": {
"range": ["start", "end"]
}
},
"switch_backlight": {
"type": "Boolean",
"value": {}
},
"control_back_mode": {
"type": "Enum",
"value": {
"range": ["forward", "back"]
}
},
"tr_timecon": {
"type": "Integer",
"value": {
"unit": "s",
"min": 10,
"max": 240,
"scale": 0,
"step": 1
}
}
},
"status_range": {
"control": {
"type": "Enum",
"value": {
"range": ["open", "stop", "close"]
}
},
"percent_control": {
"type": "Integer",
"value": {
"unit": "%",
"min": 0,
"max": 100,
"scale": 0,
"step": 10
}
},
"cur_calibration": {
"type": "Enum",
"value": {
"range": ["start", "end"]
}
},
"switch_backlight": {
"type": "Boolean",
"value": {}
},
"control_back_mode": {
"type": "Enum",
"value": {
"range": ["forward", "back"]
}
},
"tr_timecon": {
"type": "Integer",
"value": {
"unit": "s",
"min": 10,
"max": 240,
"scale": 0,
"step": 1
}
}
},
"status": {
"control": "stop",
"percent_control": 0,
"cur_calibration": "end",
"switch_backlight": false,
"control_back_mode": "forward",
"tr_timecon": 32
},
"set_up": true,
"support_local": true
}
@@ -0,0 +1,134 @@
{
"endpoint": "https://apigw.tuyaeu.com",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"name": "Living room dehumidifier",
"category": "cs",
"product_id": "b9oyi2yofflroq1g",
"product_name": "Dehumidifier ",
"online": true,
"sub": false,
"time_zone": "+01:00",
"active_time": "2025-02-25T10:34:41+00:00",
"create_time": "2025-02-25T10:34:41+00:00",
"update_time": "2025-02-25T10:34:41+00:00",
"function": {
"switch": {
"type": "Boolean",
"value": {}
},
"dehumidify_set_value": {
"type": "Integer",
"value": {
"unit": "%",
"min": 25,
"max": 80,
"scale": 0,
"step": 5
}
},
"fan_speed_enum": {
"type": "Enum",
"value": {
"range": ["low", "high"]
}
},
"swing": {
"type": "Boolean",
"value": {}
},
"anion": {
"type": "Boolean",
"value": {}
},
"uv": {
"type": "Boolean",
"value": {}
},
"child_lock": {
"type": "Boolean",
"value": {}
},
"countdown_set": {
"type": "Enum",
"value": {
"range": ["cancel", "1h", "2h", "3h"]
}
}
},
"status_range": {
"switch": {
"type": "Boolean",
"value": {}
},
"dehumidify_set_value": {
"type": "Integer",
"value": {
"unit": "%",
"min": 25,
"max": 80,
"scale": 0,
"step": 5
}
},
"fan_speed_enum": {
"type": "Enum",
"value": {
"range": ["low", "high"]
}
},
"humidity_indoor": {
"type": "Integer",
"value": {
"unit": "%",
"min": 0,
"max": 100,
"scale": 0,
"step": 1
}
},
"swing": {
"type": "Boolean",
"value": {}
},
"anion": {
"type": "Boolean",
"value": {}
},
"uv": {
"type": "Boolean",
"value": {}
},
"child_lock": {
"type": "Boolean",
"value": {}
},
"countdown_set": {
"type": "Enum",
"value": {
"range": ["cancel", "1h", "2h", "3h"]
}
},
"fault": {
"type": "Bitmap",
"value": {
"label": ["E1", "E2"]
}
}
},
"status": {
"switch": false,
"dehumidify_set_value": 47,
"fan_speed_enum": "high",
"humidity_indoor": 48,
"swing": true,
"anion": false,
"uv": false,
"child_lock": false,
"countdown_set": "cancel",
"fault": 0
},
"set_up": true,
"support_local": true
}
@@ -0,0 +1,149 @@
{
"endpoint": "https://apigw.tuyaeu.com",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"name": "Weihnachten3",
"category": "cz",
"product_id": "0fHWRe8ULjtmnBNd",
"product_name": "SP22-10A",
"online": true,
"sub": false,
"time_zone": "+01:00",
"active_time": "2018-12-07T12:58:37+00:00",
"create_time": "2018-12-07T12:58:37+00:00",
"update_time": "2018-12-07T12:58:37+00:00",
"function": {
"switch_1": {
"type": "Boolean",
"value": {}
},
"countdown_1": {
"type": "Integer",
"value": {
"unit": "s",
"min": 0,
"max": 86400,
"scale": 0,
"step": 1
}
}
},
"status_range": {
"switch_1": {
"type": "Boolean",
"value": {}
},
"countdown_1": {
"type": "Integer",
"value": {
"unit": "s",
"min": 0,
"max": 86400,
"scale": 0,
"step": 1
}
},
"add_ele": {
"type": "Integer",
"value": {
"unit": "",
"min": 0,
"max": 50000,
"scale": 3,
"step": 100
}
},
"cur_current": {
"type": "Integer",
"value": {
"unit": "mA",
"min": 0,
"max": 30000,
"scale": 0,
"step": 1
}
},
"cur_power": {
"type": "Integer",
"value": {
"unit": "W",
"min": 0,
"max": 50000,
"scale": 1,
"step": 1
}
},
"cur_voltage": {
"type": "Integer",
"value": {
"unit": "V",
"min": 0,
"max": 5000,
"scale": 1,
"step": 1
}
},
"voltage_coe": {
"type": "Integer",
"value": {
"unit": "",
"min": 0,
"max": 1000000,
"scale": 0,
"step": 1
}
},
"electric_coe": {
"type": "Integer",
"value": {
"unit": "",
"min": 0,
"max": 1000000,
"scale": 0,
"step": 1
}
},
"power_coe": {
"type": "Integer",
"value": {
"unit": "",
"min": 0,
"max": 1000000,
"scale": 0,
"step": 1
}
},
"electricity_coe": {
"type": "Integer",
"value": {
"unit": "",
"min": 0,
"max": 1000000,
"scale": 0,
"step": 1
}
},
"fault": {
"type": "Bitmap",
"value": {
"label": ["ov_cr", "ov_vol", "ov_pwr", "ls_cr", "ls_vol", "ls_pow"]
}
}
},
"status": {
"switch_1": false,
"countdown_1": 0,
"add_ele": 1,
"cur_current": 18,
"cur_power": 21,
"cur_voltage": 2351,
"voltage_coe": 638,
"electric_coe": 31090,
"power_coe": 17883,
"electricity_coe": 1165,
"fault": 0
},
"set_up": true,
"support_local": true
}
@@ -0,0 +1,149 @@
{
"endpoint": "https://apigw.tuyaeu.com",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"name": "N4-Auto",
"category": "cz",
"product_id": "IGzCi97RpN2Lf9cu",
"product_name": "Smart Socket",
"online": false,
"sub": false,
"time_zone": "+01:00",
"active_time": "2020-11-15T07:45:07+00:00",
"create_time": "2020-11-15T07:45:07+00:00",
"update_time": "2020-11-15T07:45:07+00:00",
"function": {
"switch_1": {
"type": "Boolean",
"value": {}
},
"countdown_1": {
"type": "Integer",
"value": {
"unit": "s",
"min": 0,
"max": 86400,
"scale": 0,
"step": 1
}
}
},
"status_range": {
"switch_1": {
"type": "Boolean",
"value": {}
},
"countdown_1": {
"type": "Integer",
"value": {
"unit": "s",
"min": 0,
"max": 86400,
"scale": 0,
"step": 1
}
},
"add_ele": {
"type": "Integer",
"value": {
"unit": "",
"min": 0,
"max": 50000,
"scale": 3,
"step": 100
}
},
"cur_current": {
"type": "Integer",
"value": {
"unit": "mA",
"min": 0,
"max": 30000,
"scale": 0,
"step": 1
}
},
"cur_power": {
"type": "Integer",
"value": {
"unit": "W",
"min": 0,
"max": 50000,
"scale": 1,
"step": 1
}
},
"cur_voltage": {
"type": "Integer",
"value": {
"unit": "V",
"min": 0,
"max": 5000,
"scale": 1,
"step": 1
}
},
"voltage_coe": {
"type": "Integer",
"value": {
"unit": "",
"min": 0,
"max": 1000000,
"scale": 0,
"step": 1
}
},
"electric_coe": {
"type": "Integer",
"value": {
"unit": "",
"min": 0,
"max": 1000000,
"scale": 0,
"step": 1
}
},
"power_coe": {
"type": "Integer",
"value": {
"unit": "",
"min": 0,
"max": 1000000,
"scale": 0,
"step": 1
}
},
"electricity_coe": {
"type": "Integer",
"value": {
"unit": "",
"min": 0,
"max": 1000000,
"scale": 0,
"step": 1
}
},
"fault": {
"type": "Bitmap",
"value": {
"label": ["ov_cr", "ov_vol", "ov_pwr", "ls_cr", "ls_vol", "ls_pow"]
}
}
},
"status": {
"switch_1": false,
"countdown_1": 0,
"add_ele": 1,
"cur_current": 14,
"cur_power": 16,
"cur_voltage": 2287,
"voltage_coe": 757,
"electric_coe": 31906,
"power_coe": 21760,
"electricity_coe": 960,
"fault": 0
},
"set_up": true,
"support_local": true
}
@@ -0,0 +1,54 @@
{
"endpoint": "https://apigw.tuyaeu.com",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"name": "Din",
"category": "cz",
"product_id": "PGEkBctAbtzKOZng",
"product_name": "Smart Plug",
"online": true,
"sub": false,
"time_zone": "+02:00",
"active_time": "2018-07-13T13:18:44+00:00",
"create_time": "2018-07-13T13:18:44+00:00",
"update_time": "2018-07-13T13:18:44+00:00",
"function": {
"switch": {
"type": "Boolean",
"value": {}
},
"countdown_1": {
"type": "Integer",
"value": {
"unit": "\u79d2",
"min": 0,
"max": 86400,
"scale": 0,
"step": 1
}
}
},
"status_range": {
"switch": {
"type": "Boolean",
"value": {}
},
"countdown_1": {
"type": "Integer",
"value": {
"unit": "\u79d2",
"min": 0,
"max": 86400,
"scale": 0,
"step": 1
}
}
},
"status": {
"switch": false,
"countdown_1": 0
},
"set_up": true,
"support_local": true
}
@@ -0,0 +1,87 @@
{
"endpoint": "https://apigw.tuyaeu.com",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"name": "Waschmaschine",
"category": "cz",
"product_id": "mQUhiTg9kwydBFBd",
"product_name": "Smart Socket",
"online": true,
"sub": false,
"time_zone": "+02:00",
"active_time": "2018-08-13T17:59:14+00:00",
"create_time": "2018-08-13T17:59:14+00:00",
"update_time": "2018-08-13T17:59:14+00:00",
"function": {
"switch": {
"type": "Boolean",
"value": {}
},
"countdown_1": {
"type": "Integer",
"value": {
"unit": "\u79d2",
"min": 0,
"max": 86400,
"scale": 0,
"step": 1
}
}
},
"status_range": {
"switch": {
"type": "Boolean",
"value": {}
},
"countdown_1": {
"type": "Integer",
"value": {
"unit": "\u79d2",
"min": 0,
"max": 86400,
"scale": 0,
"step": 1
}
},
"cur_current": {
"type": "Integer",
"value": {
"unit": "mA",
"min": 0,
"max": 30000,
"scale": 0,
"step": 1
}
},
"cur_power": {
"type": "Integer",
"value": {
"unit": "W",
"min": 0,
"max": 50000,
"scale": 0,
"step": 1
}
},
"cur_voltage": {
"type": "Integer",
"value": {
"unit": "V",
"min": 0,
"max": 3000,
"scale": 0,
"step": 1
}
}
},
"status": {
"switch": false,
"countdown_1": 0,
"cur_current": 1,
"cur_power": 10455,
"cur_voltage": 2381
},
"set_up": true,
"support_local": true
}
@@ -0,0 +1,33 @@
{
"endpoint": "https://apigw.tuyaeu.com",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"name": "Signal repeater",
"category": "cz",
"product_id": "piuensvr",
"product_name": "Signal repeater",
"online": true,
"sub": true,
"time_zone": "+02:00",
"active_time": "2025-07-16T17:52:11+00:00",
"create_time": "2025-07-16T17:52:11+00:00",
"update_time": "2025-07-16T17:52:11+00:00",
"function": {
"switch_1": {
"type": "Boolean",
"value": {}
}
},
"status_range": {
"switch_1": {
"type": "Boolean",
"value": {}
}
},
"status": {
"switch_1": false
},
"set_up": true,
"support_local": true
}
@@ -0,0 +1,87 @@
{
"endpoint": "https://apigw.tuyaeu.com",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"name": "LivR",
"category": "cz",
"product_id": "qxJSyTLEtX5WrzA9",
"product_name": "Mini Smart Plug",
"online": true,
"sub": false,
"time_zone": "+01:00",
"active_time": "2018-02-21T13:32:25+00:00",
"create_time": "2018-02-21T13:32:25+00:00",
"update_time": "2018-02-21T13:32:25+00:00",
"function": {
"switch": {
"type": "Boolean",
"value": {}
},
"countdown_1": {
"type": "Integer",
"value": {
"unit": "\u79d2",
"min": 0,
"max": 86400,
"scale": 0,
"step": 1
}
}
},
"status_range": {
"switch": {
"type": "Boolean",
"value": {}
},
"countdown_1": {
"type": "Integer",
"value": {
"unit": "\u79d2",
"min": 0,
"max": 86400,
"scale": 0,
"step": 1
}
},
"cur_current": {
"type": "Integer",
"value": {
"unit": "mA",
"min": 0,
"max": 30000,
"scale": 0,
"step": 1
}
},
"cur_power": {
"type": "Integer",
"value": {
"unit": "W",
"min": 0,
"max": 50000,
"scale": 0,
"step": 1
}
},
"cur_voltage": {
"type": "Integer",
"value": {
"unit": "V",
"min": 0,
"max": 3000,
"scale": 0,
"step": 1
}
}
},
"status": {
"switch": false,
"countdown_1": 0,
"cur_current": 81,
"cur_power": 83,
"cur_voltage": 2352
},
"set_up": true,
"support_local": true
}
@@ -0,0 +1,39 @@
{
"endpoint": "https://apigw.tuyaeu.com",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"name": "Window downstairs",
"category": "mcs",
"product_id": "oxslv1c9",
"product_name": "Contact Sensor",
"online": true,
"sub": true,
"time_zone": "+02:00",
"active_time": "2025-03-27T08:28:40+00:00",
"create_time": "2025-03-27T08:28:40+00:00",
"update_time": "2025-03-27T08:28:40+00:00",
"function": {},
"status_range": {
"doorcontact_state": {
"type": "Boolean",
"value": {}
},
"battery_percentage": {
"type": "Integer",
"value": {
"unit": "%",
"min": 0,
"max": 100,
"scale": 0,
"step": 1
}
}
},
"status": {
"doorcontact_state": false,
"battery_percentage": 100
},
"set_up": true,
"support_local": true
}
@@ -0,0 +1,37 @@
{
"endpoint": "https://apigw.tuyaeu.com",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"name": "Dining-Blinds",
"category": "qt",
"product_id": "TtXKwTMwiPpURWLJ",
"product_name": "Curtain switch",
"online": true,
"sub": false,
"time_zone": "+02:00",
"active_time": "2019-06-07T09:33:41+00:00",
"create_time": "2019-06-07T09:33:41+00:00",
"update_time": "2019-06-07T09:33:41+00:00",
"function": {
"control": {
"type": "Enum",
"value": {
"range": ["open", "stop", "close"]
}
}
},
"status_range": {
"control": {
"type": "Enum",
"value": {
"range": ["open", "stop", "close"]
}
}
},
"status": {
"control": "open"
},
"set_up": false,
"support_local": true
}
@@ -0,0 +1,21 @@
{
"endpoint": "https://apigw.tuyaeu.com",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"name": "Zigbee Gateway",
"category": "wfcon",
"product_id": "plp0gnfcacdeqk5o",
"product_name": "Zigbee Gateway",
"online": true,
"sub": false,
"time_zone": "+02:00",
"active_time": "2023-10-14T06:02:39+00:00",
"create_time": "2023-10-14T06:02:39+00:00",
"update_time": "2023-10-14T06:02:39+00:00",
"function": {},
"status_range": {},
"status": {},
"set_up": false,
"support_local": true
}
@@ -0,0 +1,85 @@
{
"endpoint": "https://apigw.tuyaeu.com",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"name": "Empore",
"category": "wkf",
"product_id": "9xfjixap",
"product_name": "Smart Radiator Thermostat Controller",
"online": true,
"sub": true,
"time_zone": "+02:00",
"active_time": "2025-03-06T17:22:27+00:00",
"create_time": "2025-03-06T17:22:27+00:00",
"update_time": "2025-03-06T17:22:27+00:00",
"function": {
"mode": {
"type": "Enum",
"value": {
"range": ["auto", "manual", "off"]
}
},
"temp_set": {
"type": "Integer",
"value": {
"unit": "\u2103",
"min": 50,
"max": 350,
"scale": 1,
"step": 10
}
},
"child_lock": {
"type": "Boolean",
"value": {}
}
},
"status_range": {
"mode": {
"type": "Enum",
"value": {
"range": ["auto", "manual", "off"]
}
},
"work_state": {
"type": "Enum",
"value": {
"range": ["opened", "closed"]
}
},
"temp_set": {
"type": "Integer",
"value": {
"unit": "\u2103",
"min": 50,
"max": 350,
"scale": 1,
"step": 10
}
},
"temp_current": {
"type": "Integer",
"value": {
"unit": "\u2103",
"min": 0,
"max": 500,
"scale": 1,
"step": 10
}
},
"child_lock": {
"type": "Boolean",
"value": {}
}
},
"status": {
"mode": "manual",
"work_state": "opened",
"temp_set": 350,
"temp_current": 190,
"child_lock": false
},
"set_up": true,
"support_local": true
}
@@ -0,0 +1,85 @@
{
"endpoint": "https://apigw.tuyaeu.com",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"name": "Anbau",
"category": "wkf",
"product_id": "p3dbf6qs",
"product_name": "Smart Radiator Thermostat",
"online": false,
"sub": true,
"time_zone": "+02:00",
"active_time": "2023-10-14T06:23:27+00:00",
"create_time": "2023-10-14T06:23:27+00:00",
"update_time": "2023-10-14T06:23:27+00:00",
"function": {
"mode": {
"type": "Enum",
"value": {
"range": ["auto", "manual", "off"]
}
},
"temp_set": {
"type": "Integer",
"value": {
"unit": "\u2103",
"min": 50,
"max": 350,
"scale": 1,
"step": 10
}
},
"child_lock": {
"type": "Boolean",
"value": {}
}
},
"status_range": {
"mode": {
"type": "Enum",
"value": {
"range": ["auto", "manual", "off"]
}
},
"work_state": {
"type": "Enum",
"value": {
"range": ["opened", "closed"]
}
},
"temp_set": {
"type": "Integer",
"value": {
"unit": "\u2103",
"min": 50,
"max": 350,
"scale": 1,
"step": 10
}
},
"temp_current": {
"type": "Integer",
"value": {
"unit": "\u2103",
"min": 0,
"max": 500,
"scale": 1,
"step": 10
}
},
"child_lock": {
"type": "Boolean",
"value": {}
}
},
"status": {
"mode": "manual",
"work_state": "opened",
"temp_set": 250,
"temp_current": 220,
"child_lock": false
},
"set_up": true,
"support_local": true
}
@@ -0,0 +1,210 @@
{
"endpoint": "https://apigw.tuyaeu.com",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"name": "Temperature and humidity sensor",
"category": "wsdcg",
"product_id": "qrztc3ev",
"product_name": "Temperature and humidity sensor",
"online": true,
"sub": true,
"time_zone": "+02:00",
"active_time": "2025-03-29T14:26:44+00:00",
"create_time": "2025-03-29T14:26:44+00:00",
"update_time": "2025-03-29T14:26:44+00:00",
"function": {
"temp_unit_convert": {
"type": "Enum",
"value": {
"range": ["c", "f"]
}
},
"maxtemp_set": {
"type": "Integer",
"value": {
"unit": "\u2103",
"min": -200,
"max": 600,
"scale": 1,
"step": 10
}
},
"minitemp_set": {
"type": "Integer",
"value": {
"unit": "\u2103",
"min": -200,
"max": 600,
"scale": 1,
"step": 10
}
},
"maxhum_set": {
"type": "Integer",
"value": {
"unit": "%",
"min": 0,
"max": 100,
"scale": 0,
"step": 1
}
},
"minihum_set": {
"type": "Integer",
"value": {
"unit": "%",
"min": 0,
"max": 100,
"scale": 0,
"step": 1
}
},
"temp_sensitivity": {
"type": "Integer",
"value": {
"unit": "\u2103",
"min": 3,
"max": 50,
"scale": 1,
"step": 1
}
},
"hum_sensitivity": {
"type": "Integer",
"value": {
"unit": "%",
"min": 3,
"max": 10,
"scale": 0,
"step": 1
}
}
},
"status_range": {
"va_temperature": {
"type": "Integer",
"value": {
"unit": "\u2103",
"min": -200,
"max": 600,
"scale": 1,
"step": 1
}
},
"va_humidity": {
"type": "Integer",
"value": {
"unit": "%",
"min": 0,
"max": 100,
"scale": 0,
"step": 1
}
},
"battery_percentage": {
"type": "Integer",
"value": {
"unit": "%",
"min": 0,
"max": 100,
"scale": 0,
"step": 1
}
},
"temp_unit_convert": {
"type": "Enum",
"value": {
"range": ["c", "f"]
}
},
"maxtemp_set": {
"type": "Integer",
"value": {
"unit": "\u2103",
"min": -200,
"max": 600,
"scale": 1,
"step": 10
}
},
"minitemp_set": {
"type": "Integer",
"value": {
"unit": "\u2103",
"min": -200,
"max": 600,
"scale": 1,
"step": 10
}
},
"maxhum_set": {
"type": "Integer",
"value": {
"unit": "%",
"min": 0,
"max": 100,
"scale": 0,
"step": 1
}
},
"minihum_set": {
"type": "Integer",
"value": {
"unit": "%",
"min": 0,
"max": 100,
"scale": 0,
"step": 1
}
},
"temp_alarm": {
"type": "Enum",
"value": {
"range": ["cancel", "loweralarm", "upperalarm"]
}
},
"hum_alarm": {
"type": "Enum",
"value": {
"range": ["cancel", "loweralarm", "upperalarm"]
}
},
"temp_sensitivity": {
"type": "Integer",
"value": {
"unit": "\u2103",
"min": 3,
"max": 50,
"scale": 1,
"step": 1
}
},
"hum_sensitivity": {
"type": "Integer",
"value": {
"unit": "%",
"min": 3,
"max": 10,
"scale": 0,
"step": 1
}
}
},
"status": {
"va_temperature": 200,
"va_humidity": 59,
"battery_percentage": 8,
"temp_unit_convert": "c",
"maxtemp_set": 600,
"minitemp_set": -100,
"maxhum_set": 70,
"minihum_set": 40,
"temp_alarm": "cancel",
"hum_alarm": "cancel",
"temp_sensitivity": 6,
"hum_sensitivity": 4
},
"set_up": true,
"support_local": true
}
@@ -1712,6 +1712,55 @@
'state': 'off',
})
# ---
# name: test_platform_setup_and_discovery[binary_sensor.window_downstairs_door-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'binary_sensor',
'entity_category': None,
'entity_id': 'binary_sensor.window_downstairs_door',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': <BinarySensorDeviceClass.DOOR: 'door'>,
'original_icon': None,
'original_name': 'Door',
'platform': 'tuya',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': None,
'unique_id': 'tuya.9c1vlsxoscmdoorcontact_state',
'unit_of_measurement': None,
})
# ---
# name: test_platform_setup_and_discovery[binary_sensor.window_downstairs_door-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'door',
'friendly_name': 'Window downstairs Door',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.window_downstairs_door',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_platform_setup_and_discovery[binary_sensor.x5_zigbee_gateway_problem-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
@@ -74,6 +74,80 @@
'state': 'off',
})
# ---
# name: test_platform_setup_and_discovery[climate.anbau-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': dict({
'hvac_modes': list([
<HVACMode.OFF: 'off'>,
<HVACMode.HEAT_COOL: 'heat_cool'>,
<HVACMode.HEAT_COOL: 'heat_cool'>,
<HVACMode.HEAT: 'heat'>,
]),
'max_temp': 35.0,
'min_temp': 5.0,
'preset_modes': list([
'off',
]),
'target_temp_step': 1.0,
}),
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'climate',
'entity_category': None,
'entity_id': 'climate.anbau',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': None,
'platform': 'tuya',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': <ClimateEntityFeature: 17>,
'translation_key': None,
'unique_id': 'tuya.sq6fbd3pfkw',
'unit_of_measurement': None,
})
# ---
# name: test_platform_setup_and_discovery[climate.anbau-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Anbau',
'hvac_modes': list([
<HVACMode.OFF: 'off'>,
<HVACMode.HEAT_COOL: 'heat_cool'>,
<HVACMode.HEAT_COOL: 'heat_cool'>,
<HVACMode.HEAT: 'heat'>,
]),
'max_temp': 35.0,
'min_temp': 5.0,
'preset_modes': list([
'off',
]),
'supported_features': <ClimateEntityFeature: 17>,
'target_temp_step': 1.0,
}),
'context': <ANY>,
'entity_id': 'climate.anbau',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'unavailable',
})
# ---
# name: test_platform_setup_and_discovery[climate.bathroom_radiator-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
@@ -364,6 +438,83 @@
'state': 'off',
})
# ---
# name: test_platform_setup_and_discovery[climate.empore-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': dict({
'hvac_modes': list([
<HVACMode.OFF: 'off'>,
<HVACMode.HEAT_COOL: 'heat_cool'>,
<HVACMode.HEAT_COOL: 'heat_cool'>,
<HVACMode.HEAT: 'heat'>,
]),
'max_temp': 35.0,
'min_temp': 5.0,
'preset_modes': list([
'off',
]),
'target_temp_step': 1.0,
}),
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'climate',
'entity_category': None,
'entity_id': 'climate.empore',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': None,
'platform': 'tuya',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': <ClimateEntityFeature: 17>,
'translation_key': None,
'unique_id': 'tuya.paxijfx9fkw',
'unit_of_measurement': None,
})
# ---
# name: test_platform_setup_and_discovery[climate.empore-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'current_temperature': 19.0,
'friendly_name': 'Empore',
'hvac_modes': list([
<HVACMode.OFF: 'off'>,
<HVACMode.HEAT_COOL: 'heat_cool'>,
<HVACMode.HEAT_COOL: 'heat_cool'>,
<HVACMode.HEAT: 'heat'>,
]),
'max_temp': 35.0,
'min_temp': 5.0,
'preset_mode': None,
'preset_modes': list([
'off',
]),
'supported_features': <ClimateEntityFeature: 17>,
'target_temp_step': 1.0,
'temperature': 35.0,
}),
'context': <ANY>,
'entity_id': 'climate.empore',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'heat_cool',
})
# ---
# name: test_platform_setup_and_discovery[climate.kabinet-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
@@ -151,6 +151,56 @@
'state': 'open',
})
# ---
# name: test_platform_setup_and_discovery[cover.kit_blinds_curtain-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'cover',
'entity_category': None,
'entity_id': 'cover.kit_blinds_curtain',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': <CoverDeviceClass.CURTAIN: 'curtain'>,
'original_icon': None,
'original_name': 'Curtain',
'platform': 'tuya',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': <CoverEntityFeature: 11>,
'translation_key': 'curtain',
'unique_id': 'tuya.xR2ASpOQgAAqu7Drlccontrol',
'unit_of_measurement': None,
})
# ---
# name: test_platform_setup_and_discovery[cover.kit_blinds_curtain-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'curtain',
'friendly_name': 'Kit-Blinds Curtain',
'supported_features': <CoverEntityFeature: 11>,
}),
'context': <ANY>,
'entity_id': 'cover.kit_blinds_curtain',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'unknown',
})
# ---
# name: test_platform_setup_and_discovery[cover.kitchen_blinds_blind-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
@@ -304,6 +354,57 @@
'state': 'open',
})
# ---
# name: test_platform_setup_and_discovery[cover.pergola_curtain-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'cover',
'entity_category': None,
'entity_id': 'cover.pergola_curtain',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': <CoverDeviceClass.CURTAIN: 'curtain'>,
'original_icon': None,
'original_name': 'Curtain',
'platform': 'tuya',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': <CoverEntityFeature: 15>,
'translation_key': 'curtain',
'unique_id': 'tuya.shga3pmbkwhthvqxgklccontrol',
'unit_of_measurement': None,
})
# ---
# name: test_platform_setup_and_discovery[cover.pergola_curtain-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'current_position': 100,
'device_class': 'curtain',
'friendly_name': 'Pergola Curtain',
'supported_features': <CoverEntityFeature: 15>,
}),
'context': <ANY>,
'entity_id': 'cover.pergola_curtain',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'open',
})
# ---
# name: test_platform_setup_and_discovery[cover.persiana_do_quarto_curtain-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
@@ -450,6 +450,63 @@
'state': 'off',
})
# ---
# name: test_platform_setup_and_discovery[fan.living_room_dehumidifier-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': dict({
'preset_modes': list([
]),
}),
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'fan',
'entity_category': None,
'entity_id': 'fan.living_room_dehumidifier',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': None,
'platform': 'tuya',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': <FanEntityFeature: 49>,
'translation_key': None,
'unique_id': 'tuya.g1qorlffoy2iyo9bsc',
'unit_of_measurement': None,
})
# ---
# name: test_platform_setup_and_discovery[fan.living_room_dehumidifier-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Living room dehumidifier',
'percentage': 100,
'percentage_step': 50.0,
'preset_mode': None,
'preset_modes': list([
]),
'supported_features': <FanEntityFeature: 49>,
}),
'context': <ANY>,
'entity_id': 'fan.living_room_dehumidifier',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_platform_setup_and_discovery[fan.tower_fan_ca_407g_smart-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
@@ -111,3 +111,60 @@
'state': 'on',
})
# ---
# name: test_platform_setup_and_discovery[humidifier.living_room_dehumidifier-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': dict({
'max_humidity': 80,
'min_humidity': 25,
}),
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'humidifier',
'entity_category': None,
'entity_id': 'humidifier.living_room_dehumidifier',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': <HumidifierDeviceClass.DEHUMIDIFIER: 'dehumidifier'>,
'original_icon': None,
'original_name': None,
'platform': 'tuya',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': None,
'unique_id': 'tuya.g1qorlffoy2iyo9bscswitch',
'unit_of_measurement': None,
})
# ---
# name: test_platform_setup_and_discovery[humidifier.living_room_dehumidifier-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'current_humidity': 48,
'device_class': 'dehumidifier',
'friendly_name': 'Living room dehumidifier',
'humidity': 47,
'max_humidity': 80,
'min_humidity': 25,
'supported_features': <HumidifierEntityFeature: 0>,
}),
'context': <ANY>,
'entity_id': 'humidifier.living_room_dehumidifier',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
@@ -1146,6 +1146,68 @@
'via_device_id': None,
})
# ---
# name: test_device_registry[9AzrW5XtELTySJxqzc]
DeviceRegistryEntrySnapshot({
'area_id': None,
'config_entries': <ANY>,
'config_entries_subentries': <ANY>,
'configuration_url': None,
'connections': set({
}),
'disabled_by': None,
'entry_type': None,
'hw_version': None,
'id': <ANY>,
'identifiers': set({
tuple(
'tuya',
'9AzrW5XtELTySJxqzc',
),
}),
'labels': set({
}),
'manufacturer': 'Tuya',
'model': 'Mini Smart Plug',
'model_id': 'qxJSyTLEtX5WrzA9',
'name': 'LivR',
'name_by_user': None,
'primary_config_entry': <ANY>,
'serial_number': None,
'sw_version': None,
'via_device_id': None,
})
# ---
# name: test_device_registry[9c1vlsxoscm]
DeviceRegistryEntrySnapshot({
'area_id': None,
'config_entries': <ANY>,
'config_entries_subentries': <ANY>,
'configuration_url': None,
'connections': set({
}),
'disabled_by': None,
'entry_type': None,
'hw_version': None,
'id': <ANY>,
'identifiers': set({
tuple(
'tuya',
'9c1vlsxoscm',
),
}),
'labels': set({
}),
'manufacturer': 'Tuya',
'model': 'Contact Sensor',
'model_id': 'oxslv1c9',
'name': 'Window downstairs',
'name_by_user': None,
'primary_config_entry': <ANY>,
'serial_number': None,
'sw_version': None,
'via_device_id': None,
})
# ---
# name: test_device_registry[9oh1h1uyalfykgg4bdnz]
DeviceRegistryEntrySnapshot({
'area_id': None,
@@ -1301,6 +1363,37 @@
'via_device_id': None,
})
# ---
# name: test_device_registry[JLWRUpPiwMTwKXtTtq]
DeviceRegistryEntrySnapshot({
'area_id': None,
'config_entries': <ANY>,
'config_entries_subentries': <ANY>,
'configuration_url': None,
'connections': set({
}),
'disabled_by': None,
'entry_type': None,
'hw_version': None,
'id': <ANY>,
'identifiers': set({
tuple(
'tuya',
'JLWRUpPiwMTwKXtTtq',
),
}),
'labels': set({
}),
'manufacturer': 'Tuya',
'model': 'Curtain switch (unsupported)',
'model_id': 'TtXKwTMwiPpURWLJ',
'name': 'Dining-Blinds',
'name_by_user': None,
'primary_config_entry': <ANY>,
'serial_number': None,
'sw_version': None,
'via_device_id': None,
})
# ---
# name: test_device_registry[LJ9zTFQTfMgsG2Ahzc]
DeviceRegistryEntrySnapshot({
'area_id': None,
@@ -2479,6 +2572,68 @@
'via_device_id': None,
})
# ---
# name: test_device_registry[dBFBdywk9gTihUQmzc]
DeviceRegistryEntrySnapshot({
'area_id': None,
'config_entries': <ANY>,
'config_entries_subentries': <ANY>,
'configuration_url': None,
'connections': set({
}),
'disabled_by': None,
'entry_type': None,
'hw_version': None,
'id': <ANY>,
'identifiers': set({
tuple(
'tuya',
'dBFBdywk9gTihUQmzc',
),
}),
'labels': set({
}),
'manufacturer': 'Tuya',
'model': 'Smart Socket',
'model_id': 'mQUhiTg9kwydBFBd',
'name': 'Waschmaschine',
'name_by_user': None,
'primary_config_entry': <ANY>,
'serial_number': None,
'sw_version': None,
'via_device_id': None,
})
# ---
# name: test_device_registry[dNBnmtjLU8eRWHf0zc]
DeviceRegistryEntrySnapshot({
'area_id': None,
'config_entries': <ANY>,
'config_entries_subentries': <ANY>,
'configuration_url': None,
'connections': set({
}),
'disabled_by': None,
'entry_type': None,
'hw_version': None,
'id': <ANY>,
'identifiers': set({
tuple(
'tuya',
'dNBnmtjLU8eRWHf0zc',
),
}),
'labels': set({
}),
'manufacturer': 'Tuya',
'model': 'SP22-10A',
'model_id': '0fHWRe8ULjtmnBNd',
'name': 'Weihnachten3',
'name_by_user': None,
'primary_config_entry': <ANY>,
'serial_number': None,
'sw_version': None,
'via_device_id': None,
})
# ---
# name: test_device_registry[dke76hazlc]
DeviceRegistryEntrySnapshot({
'area_id': None,
@@ -3006,6 +3161,37 @@
'via_device_id': None,
})
# ---
# name: test_device_registry[g1qorlffoy2iyo9bsc]
DeviceRegistryEntrySnapshot({
'area_id': None,
'config_entries': <ANY>,
'config_entries_subentries': <ANY>,
'configuration_url': None,
'connections': set({
}),
'disabled_by': None,
'entry_type': None,
'hw_version': None,
'id': <ANY>,
'identifiers': set({
tuple(
'tuya',
'g1qorlffoy2iyo9bsc',
),
}),
'labels': set({
}),
'manufacturer': 'Tuya',
'model': 'Dehumidifier ',
'model_id': 'b9oyi2yofflroq1g',
'name': 'Living room dehumidifier',
'name_by_user': None,
'primary_config_entry': <ANY>,
'serial_number': None,
'sw_version': None,
'via_device_id': None,
})
# ---
# name: test_device_registry[g5uso5ajgkxw]
DeviceRegistryEntrySnapshot({
'area_id': None,
@@ -3316,6 +3502,37 @@
'via_device_id': None,
})
# ---
# name: test_device_registry[gnZOKztbAtcBkEGPzc]
DeviceRegistryEntrySnapshot({
'area_id': None,
'config_entries': <ANY>,
'config_entries_subentries': <ANY>,
'configuration_url': None,
'connections': set({
}),
'disabled_by': None,
'entry_type': None,
'hw_version': None,
'id': <ANY>,
'identifiers': set({
tuple(
'tuya',
'gnZOKztbAtcBkEGPzc',
),
}),
'labels': set({
}),
'manufacturer': 'Tuya',
'model': 'Smart Plug',
'model_id': 'PGEkBctAbtzKOZng',
'name': 'Din',
'name_by_user': None,
'primary_config_entry': <ANY>,
'serial_number': None,
'sw_version': None,
'via_device_id': None,
})
# ---
# name: test_device_registry[gnqwzcph94wj2sl5nq]
DeviceRegistryEntrySnapshot({
'area_id': None,
@@ -4897,6 +5114,37 @@
'via_device_id': None,
})
# ---
# name: test_device_registry[o5kqedcacfng0plpnocfw]
DeviceRegistryEntrySnapshot({
'area_id': None,
'config_entries': <ANY>,
'config_entries_subentries': <ANY>,
'configuration_url': None,
'connections': set({
}),
'disabled_by': None,
'entry_type': None,
'hw_version': None,
'id': <ANY>,
'identifiers': set({
tuple(
'tuya',
'o5kqedcacfng0plpnocfw',
),
}),
'labels': set({
}),
'manufacturer': 'Tuya',
'model': 'Zigbee Gateway (unsupported)',
'model_id': 'plp0gnfcacdeqk5o',
'name': 'Zigbee Gateway',
'name_by_user': None,
'primary_config_entry': <ANY>,
'serial_number': None,
'sw_version': None,
'via_device_id': None,
})
# ---
# name: test_device_registry[o71einxvuuktuljcjbwy]
DeviceRegistryEntrySnapshot({
'area_id': None,
@@ -5207,6 +5455,37 @@
'via_device_id': None,
})
# ---
# name: test_device_registry[paxijfx9fkw]
DeviceRegistryEntrySnapshot({
'area_id': None,
'config_entries': <ANY>,
'config_entries_subentries': <ANY>,
'configuration_url': None,
'connections': set({
}),
'disabled_by': None,
'entry_type': None,
'hw_version': None,
'id': <ANY>,
'identifiers': set({
tuple(
'tuya',
'paxijfx9fkw',
),
}),
'labels': set({
}),
'manufacturer': 'Tuya',
'model': 'Smart Radiator Thermostat Controller',
'model_id': '9xfjixap',
'name': 'Empore',
'name_by_user': None,
'primary_config_entry': <ANY>,
'serial_number': None,
'sw_version': None,
'via_device_id': None,
})
# ---
# name: test_device_registry[pdasfna8fswh4a0tzc]
DeviceRegistryEntrySnapshot({
'area_id': None,
@@ -5858,6 +6137,37 @@
'via_device_id': None,
})
# ---
# name: test_device_registry[rvsneuipzc]
DeviceRegistryEntrySnapshot({
'area_id': None,
'config_entries': <ANY>,
'config_entries_subentries': <ANY>,
'configuration_url': None,
'connections': set({
}),
'disabled_by': None,
'entry_type': None,
'hw_version': None,
'id': <ANY>,
'identifiers': set({
tuple(
'tuya',
'rvsneuipzc',
),
}),
'labels': set({
}),
'manufacturer': 'Tuya',
'model': 'Signal repeater',
'model_id': 'piuensvr',
'name': 'Signal repeater',
'name_by_user': None,
'primary_config_entry': <ANY>,
'serial_number': None,
'sw_version': None,
'via_device_id': None,
})
# ---
# name: test_device_registry[rwp6kdezm97s2nktzc]
DeviceRegistryEntrySnapshot({
'area_id': None,
@@ -5982,6 +6292,37 @@
'via_device_id': None,
})
# ---
# name: test_device_registry[shga3pmbkwhthvqxgklc]
DeviceRegistryEntrySnapshot({
'area_id': None,
'config_entries': <ANY>,
'config_entries_subentries': <ANY>,
'configuration_url': None,
'connections': set({
}),
'disabled_by': None,
'entry_type': None,
'hw_version': None,
'id': <ANY>,
'identifiers': set({
tuple(
'tuya',
'shga3pmbkwhthvqxgklc',
),
}),
'labels': set({
}),
'manufacturer': 'Tuya',
'model': 'Curtain switch',
'model_id': 'xqvhthwkbmp3aghs',
'name': 'Pergola',
'name_by_user': None,
'primary_config_entry': <ANY>,
'serial_number': None,
'sw_version': None,
'via_device_id': None,
})
# ---
# name: test_device_registry[sifg4pfqsylsayg0jd]
DeviceRegistryEntrySnapshot({
'area_id': None,
@@ -6075,6 +6416,37 @@
'via_device_id': None,
})
# ---
# name: test_device_registry[sq6fbd3pfkw]
DeviceRegistryEntrySnapshot({
'area_id': None,
'config_entries': <ANY>,
'config_entries_subentries': <ANY>,
'configuration_url': None,
'connections': set({
}),
'disabled_by': None,
'entry_type': None,
'hw_version': None,
'id': <ANY>,
'identifiers': set({
tuple(
'tuya',
'sq6fbd3pfkw',
),
}),
'labels': set({
}),
'manufacturer': 'Tuya',
'model': 'Smart Radiator Thermostat',
'model_id': 'p3dbf6qs',
'name': 'Anbau',
'name_by_user': None,
'primary_config_entry': <ANY>,
'serial_number': None,
'sw_version': None,
'via_device_id': None,
})
# ---
# name: test_device_registry[srp7cfjtn6sshwmt2gw]
DeviceRegistryEntrySnapshot({
'area_id': None,
@@ -6509,6 +6881,37 @@
'via_device_id': None,
})
# ---
# name: test_device_registry[uc9fL2NpR79iCzGIzc]
DeviceRegistryEntrySnapshot({
'area_id': None,
'config_entries': <ANY>,
'config_entries_subentries': <ANY>,
'configuration_url': None,
'connections': set({
}),
'disabled_by': None,
'entry_type': None,
'hw_version': None,
'id': <ANY>,
'identifiers': set({
tuple(
'tuya',
'uc9fL2NpR79iCzGIzc',
),
}),
'labels': set({
}),
'manufacturer': 'Tuya',
'model': 'Smart Socket',
'model_id': 'IGzCi97RpN2Lf9cu',
'name': 'N4-Auto',
'name_by_user': None,
'primary_config_entry': <ANY>,
'serial_number': None,
'sw_version': None,
'via_device_id': None,
})
# ---
# name: test_device_registry[uew54dymycjwz]
DeviceRegistryEntrySnapshot({
'area_id': None,
@@ -6664,6 +7067,37 @@
'via_device_id': None,
})
# ---
# name: test_device_registry[ve3ctzrqgcdsw]
DeviceRegistryEntrySnapshot({
'area_id': None,
'config_entries': <ANY>,
'config_entries_subentries': <ANY>,
'configuration_url': None,
'connections': set({
}),
'disabled_by': None,
'entry_type': None,
'hw_version': None,
'id': <ANY>,
'identifiers': set({
tuple(
'tuya',
've3ctzrqgcdsw',
),
}),
'labels': set({
}),
'manufacturer': 'Tuya',
'model': 'Temperature and humidity sensor',
'model_id': 'qrztc3ev',
'name': 'Temperature and humidity sensor',
'name_by_user': None,
'primary_config_entry': <ANY>,
'serial_number': None,
'sw_version': None,
'via_device_id': None,
})
# ---
# name: test_device_registry[vnj3sa6mqahro6phjd]
DeviceRegistryEntrySnapshot({
'area_id': None,
@@ -6974,6 +7408,37 @@
'via_device_id': None,
})
# ---
# name: test_device_registry[xR2ASpOQgAAqu7Drlc]
DeviceRegistryEntrySnapshot({
'area_id': None,
'config_entries': <ANY>,
'config_entries_subentries': <ANY>,
'configuration_url': None,
'connections': set({
}),
'disabled_by': None,
'entry_type': None,
'hw_version': None,
'id': <ANY>,
'identifiers': set({
tuple(
'tuya',
'xR2ASpOQgAAqu7Drlc',
),
}),
'labels': set({
}),
'manufacturer': 'Tuya',
'model': 'Wi-Fi Curtian Switch',
'model_id': 'rD7uqAAgQOpSA2Rx',
'name': 'Kit-Blinds',
'name_by_user': None,
'primary_config_entry': <ANY>,
'serial_number': None,
'sw_version': None,
'via_device_id': None,
})
# ---
# name: test_device_registry[xenxir4a0tn0p1qcqdt]
DeviceRegistryEntrySnapshot({
'area_id': None,
@@ -2408,6 +2408,63 @@
'state': 'unavailable',
})
# ---
# name: test_platform_setup_and_discovery[light.pergola_backlight-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': dict({
'supported_color_modes': list([
<ColorMode.ONOFF: 'onoff'>,
]),
}),
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'light',
'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'light.pergola_backlight',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': 'Backlight',
'platform': 'tuya',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': 'backlight',
'unique_id': 'tuya.shga3pmbkwhthvqxgklcswitch_backlight',
'unit_of_measurement': None,
})
# ---
# name: test_platform_setup_and_discovery[light.pergola_backlight-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'color_mode': None,
'friendly_name': 'Pergola Backlight',
'supported_color_modes': list([
<ColorMode.ONOFF: 'onoff'>,
]),
'supported_features': <LightEntityFeature: 0>,
}),
'context': <ANY>,
'entity_id': 'light.pergola_backlight',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_platform_setup_and_discovery[light.plafond_bureau-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
@@ -3136,6 +3136,67 @@
'state': 'power_on',
})
# ---
# name: test_platform_setup_and_discovery[select.living_room_dehumidifier_countdown-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': dict({
'options': list([
'cancel',
'1h',
'2h',
'3h',
]),
}),
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'select',
'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'select.living_room_dehumidifier_countdown',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': 'Countdown',
'platform': 'tuya',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': 'countdown',
'unique_id': 'tuya.g1qorlffoy2iyo9bsccountdown_set',
'unit_of_measurement': None,
})
# ---
# name: test_platform_setup_and_discovery[select.living_room_dehumidifier_countdown-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Living room dehumidifier Countdown',
'options': list([
'cancel',
'1h',
'2h',
'3h',
]),
}),
'context': <ANY>,
'entity_id': 'select.living_room_dehumidifier_countdown',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'cancel',
})
# ---
# name: test_platform_setup_and_discovery[select.mesa_level-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
File diff suppressed because it is too large Load Diff
@@ -486,6 +486,54 @@
'state': 'off',
})
# ---
# name: test_platform_setup_and_discovery[switch.anbau_child_lock-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'switch',
'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'switch.anbau_child_lock',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': 'Child lock',
'platform': 'tuya',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': 'child_lock',
'unique_id': 'tuya.sq6fbd3pfkwchild_lock',
'unit_of_measurement': None,
})
# ---
# name: test_platform_setup_and_discovery[switch.anbau_child_lock-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Anbau Child lock',
}),
'context': <ANY>,
'entity_id': 'switch.anbau_child_lock',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'unavailable',
})
# ---
# name: test_platform_setup_and_discovery[switch.apollo_light_socket_1-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
@@ -2855,6 +2903,55 @@
'state': 'off',
})
# ---
# name: test_platform_setup_and_discovery[switch.din_socket-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'switch',
'entity_category': None,
'entity_id': 'switch.din_socket',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': <SwitchDeviceClass.OUTLET: 'outlet'>,
'original_icon': None,
'original_name': 'Socket',
'platform': 'tuya',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': 'socket',
'unique_id': 'tuya.gnZOKztbAtcBkEGPzcswitch',
'unit_of_measurement': None,
})
# ---
# name: test_platform_setup_and_discovery[switch.din_socket-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'outlet',
'friendly_name': 'Din Socket',
}),
'context': <ANY>,
'entity_id': 'switch.din_socket',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_platform_setup_and_discovery[switch.droger_socket_1-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
@@ -3386,6 +3483,54 @@
'state': 'on',
})
# ---
# name: test_platform_setup_and_discovery[switch.empore_child_lock-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'switch',
'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'switch.empore_child_lock',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': 'Child lock',
'platform': 'tuya',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': 'child_lock',
'unique_id': 'tuya.paxijfx9fkwchild_lock',
'unit_of_measurement': None,
})
# ---
# name: test_platform_setup_and_discovery[switch.empore_child_lock-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Empore Child lock',
}),
'context': <ANY>,
'entity_id': 'switch.empore_child_lock',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_platform_setup_and_discovery[switch.fakkel_veranda_socket_1-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
@@ -5514,6 +5659,153 @@
'state': 'unavailable',
})
# ---
# name: test_platform_setup_and_discovery[switch.living_room_dehumidifier_child_lock-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'switch',
'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'switch.living_room_dehumidifier_child_lock',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': 'mdi:account-lock',
'original_name': 'Child lock',
'platform': 'tuya',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': 'child_lock',
'unique_id': 'tuya.g1qorlffoy2iyo9bscchild_lock',
'unit_of_measurement': None,
})
# ---
# name: test_platform_setup_and_discovery[switch.living_room_dehumidifier_child_lock-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Living room dehumidifier Child lock',
'icon': 'mdi:account-lock',
}),
'context': <ANY>,
'entity_id': 'switch.living_room_dehumidifier_child_lock',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_platform_setup_and_discovery[switch.living_room_dehumidifier_ionizer-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'switch',
'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'switch.living_room_dehumidifier_ionizer',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': 'mdi:atom',
'original_name': 'Ionizer',
'platform': 'tuya',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': 'ionizer',
'unique_id': 'tuya.g1qorlffoy2iyo9bscanion',
'unit_of_measurement': None,
})
# ---
# name: test_platform_setup_and_discovery[switch.living_room_dehumidifier_ionizer-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Living room dehumidifier Ionizer',
'icon': 'mdi:atom',
}),
'context': <ANY>,
'entity_id': 'switch.living_room_dehumidifier_ionizer',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_platform_setup_and_discovery[switch.livr_socket-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'switch',
'entity_category': None,
'entity_id': 'switch.livr_socket',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': <SwitchDeviceClass.OUTLET: 'outlet'>,
'original_icon': None,
'original_name': 'Socket',
'platform': 'tuya',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': 'socket',
'unique_id': 'tuya.9AzrW5XtELTySJxqzcswitch',
'unit_of_measurement': None,
})
# ---
# name: test_platform_setup_and_discovery[switch.livr_socket-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'outlet',
'friendly_name': 'LivR Socket',
}),
'context': <ANY>,
'entity_id': 'switch.livr_socket',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_platform_setup_and_discovery[switch.lounge_dark_blind_reverse-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
@@ -5850,6 +6142,55 @@
'state': 'on',
})
# ---
# name: test_platform_setup_and_discovery[switch.n4_auto_socket_1-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'switch',
'entity_category': None,
'entity_id': 'switch.n4_auto_socket_1',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': <SwitchDeviceClass.OUTLET: 'outlet'>,
'original_icon': None,
'original_name': 'Socket 1',
'platform': 'tuya',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': 'indexed_socket',
'unique_id': 'tuya.uc9fL2NpR79iCzGIzcswitch_1',
'unit_of_measurement': None,
})
# ---
# name: test_platform_setup_and_discovery[switch.n4_auto_socket_1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'outlet',
'friendly_name': 'N4-Auto Socket 1',
}),
'context': <ANY>,
'entity_id': 'switch.n4_auto_socket_1',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'unavailable',
})
# ---
# name: test_platform_setup_and_discovery[switch.office_child_lock-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
@@ -7260,6 +7601,55 @@
'state': 'on',
})
# ---
# name: test_platform_setup_and_discovery[switch.signal_repeater_socket_1-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'switch',
'entity_category': None,
'entity_id': 'switch.signal_repeater_socket_1',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': <SwitchDeviceClass.OUTLET: 'outlet'>,
'original_icon': None,
'original_name': 'Socket 1',
'platform': 'tuya',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': 'indexed_socket',
'unique_id': 'tuya.rvsneuipzcswitch_1',
'unit_of_measurement': None,
})
# ---
# name: test_platform_setup_and_discovery[switch.signal_repeater_socket_1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'outlet',
'friendly_name': 'Signal repeater Socket 1',
}),
'context': <ANY>,
'entity_id': 'switch.signal_repeater_socket_1',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_platform_setup_and_discovery[switch.smart_odor_eliminator_pro_switch-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
@@ -8964,6 +9354,55 @@
'state': 'unavailable',
})
# ---
# name: test_platform_setup_and_discovery[switch.waschmaschine_socket-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'switch',
'entity_category': None,
'entity_id': 'switch.waschmaschine_socket',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': <SwitchDeviceClass.OUTLET: 'outlet'>,
'original_icon': None,
'original_name': 'Socket',
'platform': 'tuya',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': 'socket',
'unique_id': 'tuya.dBFBdywk9gTihUQmzcswitch',
'unit_of_measurement': None,
})
# ---
# name: test_platform_setup_and_discovery[switch.waschmaschine_socket-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'outlet',
'friendly_name': 'Waschmaschine Socket',
}),
'context': <ANY>,
'entity_id': 'switch.waschmaschine_socket',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_platform_setup_and_discovery[switch.water_fountain_filter_reset-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
@@ -9108,6 +9547,55 @@
'state': 'off',
})
# ---
# name: test_platform_setup_and_discovery[switch.weihnachten3_socket_1-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'switch',
'entity_category': None,
'entity_id': 'switch.weihnachten3_socket_1',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': <SwitchDeviceClass.OUTLET: 'outlet'>,
'original_icon': None,
'original_name': 'Socket 1',
'platform': 'tuya',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': 'indexed_socket',
'unique_id': 'tuya.dNBnmtjLU8eRWHf0zcswitch_1',
'unit_of_measurement': None,
})
# ---
# name: test_platform_setup_and_discovery[switch.weihnachten3_socket_1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'outlet',
'friendly_name': 'Weihnachten3 Socket 1',
}),
'context': <ANY>,
'entity_id': 'switch.weihnachten3_socket_1',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_platform_setup_and_discovery[switch.weihnachtsmann_child_lock-entry]
EntityRegistryEntrySnapshot({
'aliases': set({