mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Add more fixtures for Tuya tests (#156855)
This commit is contained in:
147
tests/components/tuya/fixtures/bzyd_tkqgkrutewrmbn9c.json
Normal file
147
tests/components/tuya/fixtures/bzyd_tkqgkrutewrmbn9c.json
Normal file
@@ -0,0 +1,147 @@
|
||||
{
|
||||
"endpoint": "https://openapi.tuyaus.com",
|
||||
"auth_type": 0,
|
||||
"country_code": "1",
|
||||
"app_type": "tuyaSmart",
|
||||
"mqtt_connected": true,
|
||||
"disabled_by": null,
|
||||
"disabled_polling": false,
|
||||
"name": "White Noise Machine",
|
||||
"model": "",
|
||||
"category": "bzyd",
|
||||
"product_id": "tkqgkrutewrmbn9c",
|
||||
"product_name": "White Noise Machine",
|
||||
"online": true,
|
||||
"sub": false,
|
||||
"time_zone": "-05:00",
|
||||
"active_time": "2023-02-06T23:04:09+00:00",
|
||||
"create_time": "2023-02-06T23:04:09+00:00",
|
||||
"update_time": "2023-02-06T23:04:11+00:00",
|
||||
"function": {
|
||||
"switch": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
},
|
||||
"work_mode": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": ["scene", "customize_scene", "colour"]
|
||||
}
|
||||
},
|
||||
"switch_led": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
},
|
||||
"colour_data": {
|
||||
"type": "Json",
|
||||
"value": {}
|
||||
},
|
||||
"switch_music": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
},
|
||||
"volume_set": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "",
|
||||
"min": 0,
|
||||
"max": 100,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"stop": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
},
|
||||
"countdown": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "min",
|
||||
"min": 0,
|
||||
"max": 1440,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"status_range": {
|
||||
"switch": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
},
|
||||
"work_mode": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": ["scene", "customize_scene", "colour"]
|
||||
}
|
||||
},
|
||||
"switch_led": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
},
|
||||
"colour_data": {
|
||||
"type": "String",
|
||||
"value": {}
|
||||
},
|
||||
"switch_music": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
},
|
||||
"volume_set": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "",
|
||||
"min": 0,
|
||||
"max": 100,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"stop": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
},
|
||||
"status": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": [
|
||||
"manual",
|
||||
"wake_up_1",
|
||||
"wake_up_2",
|
||||
"wake_up_3",
|
||||
"wake_up_4",
|
||||
"sleep_1",
|
||||
"sleep_2",
|
||||
"sleep_3",
|
||||
"sleep_4"
|
||||
]
|
||||
}
|
||||
},
|
||||
"countdown": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "min",
|
||||
"min": 0,
|
||||
"max": 1440,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"switch": false,
|
||||
"work_mode": "scene",
|
||||
"switch_led": false,
|
||||
"colour_data": {
|
||||
"h": 210,
|
||||
"s": 1000,
|
||||
"v": 1000
|
||||
},
|
||||
"switch_music": false,
|
||||
"volume_set": 40,
|
||||
"stop": false,
|
||||
"status": "manual",
|
||||
"countdown": 0
|
||||
}
|
||||
}
|
||||
109
tests/components/tuya/fixtures/cl_qtemqjy7axczkkls.json
Normal file
109
tests/components/tuya/fixtures/cl_qtemqjy7axczkkls.json
Normal file
@@ -0,0 +1,109 @@
|
||||
{
|
||||
"endpoint": "https://openapi.tuyaus.com",
|
||||
"auth_type": 0,
|
||||
"country_code": "1",
|
||||
"app_type": "tuyaSmart",
|
||||
"mqtt_connected": true,
|
||||
"disabled_by": null,
|
||||
"disabled_polling": false,
|
||||
"name": "Dining 1",
|
||||
"model": "\u5b50\u8bbe\u5907",
|
||||
"category": "cl",
|
||||
"product_id": "qtemqjy7axczkkls",
|
||||
"product_name": "smart motor",
|
||||
"online": true,
|
||||
"sub": true,
|
||||
"time_zone": "-04:00",
|
||||
"active_time": "2022-07-17T20:44:21+00:00",
|
||||
"create_time": "2022-07-17T20:44:21+00:00",
|
||||
"update_time": "2022-07-17T20:44:35+00:00",
|
||||
"function": {
|
||||
"control": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": ["open", "stop", "close"]
|
||||
}
|
||||
},
|
||||
"percent_control": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "%",
|
||||
"min": 0,
|
||||
"max": 100,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"control_back_mode": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": ["forward", "back"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"status_range": {
|
||||
"control": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": ["open", "stop", "close"]
|
||||
}
|
||||
},
|
||||
"percent_control": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "%",
|
||||
"min": 0,
|
||||
"max": 100,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"percent_state": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "%",
|
||||
"min": 0,
|
||||
"max": 100,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"control_back_mode": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": ["forward", "back"]
|
||||
}
|
||||
},
|
||||
"work_state": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": ["opening", "closing"]
|
||||
}
|
||||
},
|
||||
"time_total": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "ms",
|
||||
"min": 0,
|
||||
"max": 120000,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"fault": {
|
||||
"type": "Bitmap",
|
||||
"value": {
|
||||
"label": ["motor_fault"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"control": "close",
|
||||
"percent_control": 100,
|
||||
"percent_state": 100,
|
||||
"control_back_mode": "forward",
|
||||
"work_state": "opening",
|
||||
"time_total": 500,
|
||||
"fault": 0
|
||||
}
|
||||
}
|
||||
108
tests/components/tuya/fixtures/clkg_y7j64p60glp8qpx7.json
Normal file
108
tests/components/tuya/fixtures/clkg_y7j64p60glp8qpx7.json
Normal file
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"endpoint": "https://openapi.tuyaeu.com",
|
||||
"auth_type": 0,
|
||||
"country_code": "49",
|
||||
"app_type": "smartlife",
|
||||
"mqtt_connected": true,
|
||||
"disabled_by": null,
|
||||
"disabled_polling": false,
|
||||
|
||||
"name": "Fenster K\u00fcche",
|
||||
"model": "108W&108WR New",
|
||||
"category": "clkg",
|
||||
"product_id": "y7j64p60glp8qpx7",
|
||||
"product_name": "Curtain switch",
|
||||
"online": true,
|
||||
"sub": false,
|
||||
"time_zone": "+01:00",
|
||||
"active_time": "2021-12-11T12:14:38+00:00",
|
||||
"create_time": "2021-12-11T12:14:38+00:00",
|
||||
"update_time": "2023-11-10T14:40:46+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"]
|
||||
}
|
||||
},
|
||||
"control_back_mode": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": ["forward", "back"]
|
||||
}
|
||||
},
|
||||
"tr_timecon": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "s",
|
||||
"min": 10,
|
||||
"max": 120,
|
||||
"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"]
|
||||
}
|
||||
},
|
||||
"control_back_mode": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": ["forward", "back"]
|
||||
}
|
||||
},
|
||||
"tr_timecon": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "s",
|
||||
"min": 10,
|
||||
"max": 120,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"control": "open",
|
||||
"percent_control": 100,
|
||||
"cur_calibration": "start",
|
||||
"control_back_mode": "forward",
|
||||
"tr_timecon": 20
|
||||
}
|
||||
}
|
||||
87
tests/components/tuya/fixtures/cz_EYfNTuTPZln9e4cn.json
Normal file
87
tests/components/tuya/fixtures/cz_EYfNTuTPZln9e4cn.json
Normal file
@@ -0,0 +1,87 @@
|
||||
{
|
||||
"endpoint": "https://apigw.tuyaeu.com",
|
||||
"mqtt_connected": true,
|
||||
"disabled_by": null,
|
||||
"disabled_polling": false,
|
||||
"name": "ZAS-01",
|
||||
"category": "cz",
|
||||
"product_id": "EYfNTuTPZln9e4cn",
|
||||
"product_name": "BW-SHP6",
|
||||
"online": true,
|
||||
"sub": false,
|
||||
"time_zone": "+01:00",
|
||||
"active_time": "2024-07-01T19:35:09+00:00",
|
||||
"create_time": "2024-07-01T19:35:09+00:00",
|
||||
"update_time": "2024-07-01T19:35:09+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": 2500,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"switch": false,
|
||||
"countdown_1": 0,
|
||||
"cur_current": 862,
|
||||
"cur_power": 1988,
|
||||
"cur_voltage": 2393
|
||||
},
|
||||
"set_up": true,
|
||||
"support_local": true
|
||||
}
|
||||
101
tests/components/tuya/fixtures/cz_ExGgQmjt0SHMdlDZ.json
Normal file
101
tests/components/tuya/fixtures/cz_ExGgQmjt0SHMdlDZ.json
Normal file
@@ -0,0 +1,101 @@
|
||||
{
|
||||
"endpoint": "https://openapi.tuyaeu.com",
|
||||
"auth_type": 0,
|
||||
"country_code": "49",
|
||||
"app_type": "smartlife",
|
||||
"mqtt_connected": true,
|
||||
"disabled_by": null,
|
||||
"disabled_polling": false,
|
||||
|
||||
"name": "AK1",
|
||||
"model": "SP22A",
|
||||
"category": "cz",
|
||||
"product_id": "fbvia0apnlnattcy",
|
||||
"product_name": "Smart Socket-16A",
|
||||
"online": false,
|
||||
"sub": false,
|
||||
"time_zone": "+02:00",
|
||||
"active_time": "2023-06-25T18:04:38+00:00",
|
||||
"create_time": "2023-05-04T13:26:58+00:00",
|
||||
"update_time": "2023-07-12T21:24:50+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
|
||||
}
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"switch_1": true,
|
||||
"countdown_1": 0,
|
||||
"add_ele": 2,
|
||||
"cur_current": 0,
|
||||
"cur_power": 0,
|
||||
"cur_voltage": 2371
|
||||
}
|
||||
}
|
||||
57
tests/components/tuya/fixtures/cz_fbvia0apnlnattcy.json
Normal file
57
tests/components/tuya/fixtures/cz_fbvia0apnlnattcy.json
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"endpoint": "https://openapi.tuyaeu.com",
|
||||
"auth_type": 0,
|
||||
"country_code": "49",
|
||||
"app_type": "smartlife",
|
||||
"mqtt_connected": true,
|
||||
"disabled_by": null,
|
||||
"disabled_polling": false,
|
||||
|
||||
"name": "Casa1",
|
||||
"model": "",
|
||||
"category": "cz",
|
||||
"product_id": "ExGgQmjt0SHMdlDZ",
|
||||
"product_name": "PZ003",
|
||||
"online": false,
|
||||
"sub": false,
|
||||
"time_zone": "+01:00",
|
||||
"active_time": "2023-09-18T16:49:48+00:00",
|
||||
"create_time": "2023-09-18T16:49:48+00:00",
|
||||
"update_time": "2023-09-18T21:29:56+00:00",
|
||||
"function": {
|
||||
"switch": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
},
|
||||
"countdown_1": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "s",
|
||||
"min": 0,
|
||||
"max": 86400,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"status_range": {
|
||||
"switch": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
},
|
||||
"countdown_1": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "s",
|
||||
"min": 0,
|
||||
"max": 86400,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"switch": false,
|
||||
"countdown_1": 0
|
||||
}
|
||||
}
|
||||
379
tests/components/tuya/fixtures/dj_yfqmcabsid3gkd1y.json
Normal file
379
tests/components/tuya/fixtures/dj_yfqmcabsid3gkd1y.json
Normal file
@@ -0,0 +1,379 @@
|
||||
{
|
||||
"endpoint": "https://openapi.tuyaus.com",
|
||||
"auth_type": 0,
|
||||
"country_code": "1",
|
||||
"app_type": "smartlife",
|
||||
"mqtt_connected": true,
|
||||
"disabled_by": null,
|
||||
"disabled_polling": false,
|
||||
"name": "Shop Light 5",
|
||||
"model": "",
|
||||
"category": "dj",
|
||||
"product_id": "yfqmcabsid3gkd1y",
|
||||
"product_name": "Shop Light",
|
||||
"online": true,
|
||||
"sub": false,
|
||||
"time_zone": "-04:00",
|
||||
"active_time": "2023-05-07T18:28:55+00:00",
|
||||
"create_time": "2023-05-07T18:28:55+00:00",
|
||||
"update_time": "2023-07-31T16:30:22+00:00",
|
||||
"function": {
|
||||
"switch_led": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
},
|
||||
"work_mode": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": ["white", "colour", "scene", "music"]
|
||||
}
|
||||
},
|
||||
"bright_value_v2": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"min": 10,
|
||||
"max": 1000,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"temp_value_v2": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"min": 0,
|
||||
"max": 1000,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"scene_data_v2": {
|
||||
"type": "Json",
|
||||
"value": {
|
||||
"scene_num": {
|
||||
"min": 1,
|
||||
"scale": 0,
|
||||
"max": 8,
|
||||
"step": 1
|
||||
},
|
||||
"scene_units": {
|
||||
"unit_change_mode": {
|
||||
"range": ["static", "jump", "gradient"]
|
||||
},
|
||||
"unit_switch_duration": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"max": 100,
|
||||
"step": 1
|
||||
},
|
||||
"unit_gradient_duration": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"max": 100,
|
||||
"step": 1
|
||||
},
|
||||
"bright": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"max": 1000,
|
||||
"step": 1
|
||||
},
|
||||
"temperature": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"max": 1000,
|
||||
"step": 1
|
||||
},
|
||||
"h": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"unit": "",
|
||||
"max": 360,
|
||||
"step": 1
|
||||
},
|
||||
"s": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"unit": "",
|
||||
"max": 1000,
|
||||
"step": 1
|
||||
},
|
||||
"v": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"unit": "",
|
||||
"max": 1000,
|
||||
"step": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"countdown_1": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "s",
|
||||
"min": 0,
|
||||
"max": 86400,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"control_data": {
|
||||
"type": "Json",
|
||||
"value": {
|
||||
"change_mode": {
|
||||
"range": ["direct", "gradient"]
|
||||
},
|
||||
"bright": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"unit": "",
|
||||
"max": 1000,
|
||||
"step": 1
|
||||
},
|
||||
"temperature": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"unit": "",
|
||||
"max": 1000,
|
||||
"step": 1
|
||||
},
|
||||
"h": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"unit": "",
|
||||
"max": 360,
|
||||
"step": 1
|
||||
},
|
||||
"s": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"unit": "",
|
||||
"max": 255,
|
||||
"step": 1
|
||||
},
|
||||
"v": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"unit": "",
|
||||
"max": 255,
|
||||
"step": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"rhythm_mode": {
|
||||
"type": "Raw",
|
||||
"value": {
|
||||
"maxlen": 255
|
||||
}
|
||||
},
|
||||
"sleep_mode": {
|
||||
"type": "Raw",
|
||||
"value": {
|
||||
"maxlen": 255
|
||||
}
|
||||
},
|
||||
"wakeup_mode": {
|
||||
"type": "Raw",
|
||||
"value": {
|
||||
"maxlen": 255
|
||||
}
|
||||
},
|
||||
"power_memory": {
|
||||
"type": "Raw",
|
||||
"value": {}
|
||||
}
|
||||
},
|
||||
"status_range": {
|
||||
"switch_led": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
},
|
||||
"work_mode": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": ["white", "colour", "scene", "music"]
|
||||
}
|
||||
},
|
||||
"bright_value_v2": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"min": 10,
|
||||
"max": 1000,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"temp_value_v2": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"min": 0,
|
||||
"max": 1000,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"scene_data_v2": {
|
||||
"type": "Json",
|
||||
"value": {
|
||||
"scene_num": {
|
||||
"min": 1,
|
||||
"scale": 0,
|
||||
"max": 8,
|
||||
"step": 1
|
||||
},
|
||||
"scene_units": {
|
||||
"unit_change_mode": {
|
||||
"range": ["static", "jump", "gradient"]
|
||||
},
|
||||
"unit_switch_duration": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"max": 100,
|
||||
"step": 1
|
||||
},
|
||||
"unit_gradient_duration": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"max": 100,
|
||||
"step": 1
|
||||
},
|
||||
"bright": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"max": 1000,
|
||||
"step": 1
|
||||
},
|
||||
"temperature": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"max": 1000,
|
||||
"step": 1
|
||||
},
|
||||
"h": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"unit": "",
|
||||
"max": 360,
|
||||
"step": 1
|
||||
},
|
||||
"s": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"unit": "",
|
||||
"max": 1000,
|
||||
"step": 1
|
||||
},
|
||||
"v": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"unit": "",
|
||||
"max": 1000,
|
||||
"step": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"countdown_1": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "s",
|
||||
"min": 0,
|
||||
"max": 86400,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"control_data": {
|
||||
"type": "Json",
|
||||
"value": {
|
||||
"change_mode": {
|
||||
"range": ["direct", "gradient"]
|
||||
},
|
||||
"bright": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"unit": "",
|
||||
"max": 1000,
|
||||
"step": 1
|
||||
},
|
||||
"temperature": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"unit": "",
|
||||
"max": 1000,
|
||||
"step": 1
|
||||
},
|
||||
"h": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"unit": "",
|
||||
"max": 360,
|
||||
"step": 1
|
||||
},
|
||||
"s": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"unit": "",
|
||||
"max": 255,
|
||||
"step": 1
|
||||
},
|
||||
"v": {
|
||||
"min": 0,
|
||||
"scale": 0,
|
||||
"unit": "",
|
||||
"max": 255,
|
||||
"step": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"rhythm_mode": {
|
||||
"type": "Raw",
|
||||
"value": {
|
||||
"maxlen": "255"
|
||||
}
|
||||
},
|
||||
"sleep_mode": {
|
||||
"type": "Raw",
|
||||
"value": {
|
||||
"maxlen": "255"
|
||||
}
|
||||
},
|
||||
"wakeup_mode": {
|
||||
"type": "Raw",
|
||||
"value": {
|
||||
"maxlen": "255"
|
||||
}
|
||||
},
|
||||
"power_memory": {
|
||||
"type": "Raw",
|
||||
"value": {}
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"switch_led": false,
|
||||
"work_mode": "white",
|
||||
"bright_value_v2": 696,
|
||||
"temp_value_v2": 737,
|
||||
"scene_data_v2": {
|
||||
"scene_num": 1,
|
||||
"scene_units": [
|
||||
{
|
||||
"bright": 200,
|
||||
"h": 0,
|
||||
"s": 0,
|
||||
"temperature": 0,
|
||||
"unit_change_mode": "static",
|
||||
"unit_gradient_duration": 13,
|
||||
"unit_switch_duration": 14,
|
||||
"v": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"countdown_1": 0,
|
||||
"control_data": "",
|
||||
"rhythm_mode": "AAAAAAA=",
|
||||
"sleep_mode": "AAA=",
|
||||
"wakeup_mode": "AAA=",
|
||||
"power_memory": "AAEAAAAAAAAACgAA"
|
||||
}
|
||||
}
|
||||
59
tests/components/tuya/fixtures/wsdcg_s5l7qidyapl1rbrs.json
Normal file
59
tests/components/tuya/fixtures/wsdcg_s5l7qidyapl1rbrs.json
Normal file
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"endpoint": "https://apigw.tuyaeu.com",
|
||||
"mqtt_connected": true,
|
||||
"disabled_by": null,
|
||||
"disabled_polling": false,
|
||||
"name": "Ventus test",
|
||||
"category": "wsdcg",
|
||||
"product_id": "s5l7qidyapl1rbrs",
|
||||
"product_name": "Smart multi-channel weather station ",
|
||||
"online": true,
|
||||
"sub": false,
|
||||
"time_zone": "+01:00",
|
||||
"active_time": "2025-01-14T15:07:30+00:00",
|
||||
"create_time": "2025-01-14T15:07:30+00:00",
|
||||
"update_time": "2025-01-14T15:07:30+00:00",
|
||||
"function": {
|
||||
"temp_unit_convert": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": ["c", "f"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"status_range": {
|
||||
"va_temperature": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "C",
|
||||
"min": -400,
|
||||
"max": 600,
|
||||
"scale": 1,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"va_humidity": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "%",
|
||||
"min": 0,
|
||||
"max": 99,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"temp_unit_convert": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": ["c", "f"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"va_temperature": 209,
|
||||
"va_humidity": 42,
|
||||
"temp_unit_convert": "c"
|
||||
},
|
||||
"set_up": true,
|
||||
"support_local": true
|
||||
}
|
||||
59
tests/components/tuya/fixtures/wsdcg_xpxdr5q6vc8aztq0.json
Normal file
59
tests/components/tuya/fixtures/wsdcg_xpxdr5q6vc8aztq0.json
Normal file
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"endpoint": "https://apigw.tuyaeu.com",
|
||||
"mqtt_connected": true,
|
||||
"disabled_by": null,
|
||||
"disabled_polling": false,
|
||||
"name": "Weather station",
|
||||
"category": "wsdcg",
|
||||
"product_id": "xpxdr5q6vc8aztq0",
|
||||
"product_name": "Smart multi-channel weather station",
|
||||
"online": true,
|
||||
"sub": false,
|
||||
"time_zone": "+01:00",
|
||||
"active_time": "2024-02-22T17:40:59+00:00",
|
||||
"create_time": "2024-02-22T17:40:59+00:00",
|
||||
"update_time": "2024-02-22T17:40:59+00:00",
|
||||
"function": {
|
||||
"temp_unit_convert": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": ["c", "f"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"status_range": {
|
||||
"va_temperature": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "C",
|
||||
"min": -400,
|
||||
"max": 600,
|
||||
"scale": 1,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"va_humidity": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "%",
|
||||
"min": 0,
|
||||
"max": 99,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"temp_unit_convert": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": ["c", "f"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"va_temperature": 219,
|
||||
"va_humidity": 60,
|
||||
"temp_unit_convert": "c"
|
||||
},
|
||||
"set_up": true,
|
||||
"support_local": true
|
||||
}
|
||||
175
tests/components/tuya/fixtures/xktyd_3djw12ln4xtvv8eq.json
Normal file
175
tests/components/tuya/fixtures/xktyd_3djw12ln4xtvv8eq.json
Normal file
@@ -0,0 +1,175 @@
|
||||
{
|
||||
"endpoint": "https://openapi.tuyaeu.com",
|
||||
"auth_type": 0,
|
||||
"country_code": "61",
|
||||
"app_type": "tuyaSmart",
|
||||
"mqtt_connected": null,
|
||||
"disabled_by": null,
|
||||
"disabled_polling": false,
|
||||
"name": "Genio Nebula & Blue Star Projector",
|
||||
"model": "I003879",
|
||||
"category": "xktyd",
|
||||
"product_id": "3djw12ln4xtvv8eq",
|
||||
"product_name": "Genio Nebula & Blue Star Projector",
|
||||
"online": true,
|
||||
"sub": false,
|
||||
"time_zone": "+10:30",
|
||||
"active_time": "2021-11-17T11:32:03+00:00",
|
||||
"create_time": "2021-11-17T11:32:03+00:00",
|
||||
"update_time": "2021-12-18T14:27:33+00:00",
|
||||
"function": {
|
||||
"switch_led": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
},
|
||||
"colour_data": {
|
||||
"type": "Json",
|
||||
"value": {}
|
||||
},
|
||||
"countdown": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "s",
|
||||
"min": 0,
|
||||
"max": 86400,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"mic_music_data": {
|
||||
"type": "String",
|
||||
"value": {
|
||||
"maxlen": "255"
|
||||
}
|
||||
},
|
||||
"star_work_mode": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": ["manual", "scene", "music"]
|
||||
}
|
||||
},
|
||||
"colour_switch": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
},
|
||||
"laser_switch": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
},
|
||||
"laser_bright": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"min": 10,
|
||||
"max": 1000,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"star_control_data": {
|
||||
"type": "Raw",
|
||||
"value": {}
|
||||
},
|
||||
"star_scene_data": {
|
||||
"type": "Raw",
|
||||
"value": {}
|
||||
},
|
||||
"fan_switch": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
},
|
||||
"fan_speed": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "%",
|
||||
"min": 1,
|
||||
"max": 100,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"status_range": {
|
||||
"switch_led": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
},
|
||||
"colour_data": {
|
||||
"type": "Json",
|
||||
"value": {}
|
||||
},
|
||||
"countdown": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "s",
|
||||
"min": 0,
|
||||
"max": 86400,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"mic_music_data": {
|
||||
"type": "String",
|
||||
"value": {
|
||||
"maxlen": "255"
|
||||
}
|
||||
},
|
||||
"star_work_mode": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": ["manual", "scene", "music"]
|
||||
}
|
||||
},
|
||||
"colour_switch": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
},
|
||||
"laser_switch": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
},
|
||||
"laser_bright": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"min": 10,
|
||||
"max": 1000,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"star_scene_data": {
|
||||
"type": "Raw",
|
||||
"value": {}
|
||||
},
|
||||
"fan_switch": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
},
|
||||
"fan_speed": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "%",
|
||||
"min": 1,
|
||||
"max": 100,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"switch_led": true,
|
||||
"colour_data": {
|
||||
"h": 0,
|
||||
"s": 0,
|
||||
"v": 1000
|
||||
},
|
||||
"countdown": 0,
|
||||
"mic_music_data": "000002013232",
|
||||
"star_work_mode": "manual",
|
||||
"colour_switch": true,
|
||||
"laser_switch": true,
|
||||
"laser_bright": 1000,
|
||||
"star_scene_data": "AAQBAAABALQD6APoAQMyAQPoATI=",
|
||||
"fan_switch": true,
|
||||
"fan_speed": 100
|
||||
}
|
||||
}
|
||||
@@ -101,6 +101,57 @@
|
||||
'state': 'open',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[cover.dining_1_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.dining_1_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.slkkzcxa7yjqmetqlccontrol',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[cover.dining_1_curtain-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'current_position': 0,
|
||||
'device_class': 'curtain',
|
||||
'friendly_name': 'Dining 1 Curtain',
|
||||
'supported_features': <CoverEntityFeature: 15>,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'cover.dining_1_curtain',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'closed',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[cover.estore_sala_curtain-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
@@ -151,6 +202,57 @@
|
||||
'state': 'unknown',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[cover.fenster_kuche_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.fenster_kuche_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.7xpq8plg06p46j7ygklccontrol',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[cover.fenster_kuche_curtain-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'current_position': 0,
|
||||
'device_class': 'curtain',
|
||||
'friendly_name': 'Fenster Küche Curtain',
|
||||
'supported_features': <CoverEntityFeature: 15>,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'cover.fenster_kuche_curtain',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'closed',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[cover.garage_door_door_1-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
|
||||
@@ -1,4 +1,35 @@
|
||||
# serializer version: 1
|
||||
# name: test_device_registry[0qtza8cv6q5rdxpxgcdsw]
|
||||
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',
|
||||
'0qtza8cv6q5rdxpxgcdsw',
|
||||
),
|
||||
}),
|
||||
'labels': set({
|
||||
}),
|
||||
'manufacturer': 'Tuya',
|
||||
'model': 'Smart multi-channel weather station',
|
||||
'model_id': 'xpxdr5q6vc8aztq0',
|
||||
'name': 'Weather station',
|
||||
'name_by_user': None,
|
||||
'primary_config_entry': <ANY>,
|
||||
'serial_number': None,
|
||||
'sw_version': None,
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[18yvbamhgkjc]
|
||||
DeviceRegistryEntrySnapshot({
|
||||
'area_id': None,
|
||||
@@ -1022,6 +1053,37 @@
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[7xpq8plg06p46j7ygklc]
|
||||
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',
|
||||
'7xpq8plg06p46j7ygklc',
|
||||
),
|
||||
}),
|
||||
'labels': set({
|
||||
}),
|
||||
'manufacturer': 'Tuya',
|
||||
'model': 'Curtain switch',
|
||||
'model_id': 'y7j64p60glp8qpx7',
|
||||
'name': 'Fenster Küche',
|
||||
'name_by_user': None,
|
||||
'primary_config_entry': <ANY>,
|
||||
'serial_number': None,
|
||||
'sw_version': None,
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[7zogt3pcwhxhu8upqdt]
|
||||
DeviceRegistryEntrySnapshot({
|
||||
'area_id': None,
|
||||
@@ -1673,6 +1735,37 @@
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[ZDldMHS0tjmQgGxEzc]
|
||||
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',
|
||||
'ZDldMHS0tjmQgGxEzc',
|
||||
),
|
||||
}),
|
||||
'labels': set({
|
||||
}),
|
||||
'manufacturer': 'Tuya',
|
||||
'model': 'Smart Socket-16A',
|
||||
'model_id': 'fbvia0apnlnattcy',
|
||||
'name': 'AK1',
|
||||
'name_by_user': None,
|
||||
'primary_config_entry': <ANY>,
|
||||
'serial_number': None,
|
||||
'sw_version': None,
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[ZgXzZULP6dDp4Atvgcdsw]
|
||||
DeviceRegistryEntrySnapshot({
|
||||
'area_id': None,
|
||||
@@ -2479,6 +2572,37 @@
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[c9nbmrweturkgqktdyzb]
|
||||
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',
|
||||
'c9nbmrweturkgqktdyzb',
|
||||
),
|
||||
}),
|
||||
'labels': set({
|
||||
}),
|
||||
'manufacturer': 'Tuya',
|
||||
'model': 'White Noise Machine',
|
||||
'model_id': 'tkqgkrutewrmbn9c',
|
||||
'name': 'White Noise Machine',
|
||||
'name_by_user': None,
|
||||
'primary_config_entry': <ANY>,
|
||||
'serial_number': None,
|
||||
'sw_version': None,
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[cd6bezcadvjngj5jrip]
|
||||
DeviceRegistryEntrySnapshot({
|
||||
'area_id': None,
|
||||
@@ -5238,6 +5362,37 @@
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[nc4e9nlZPTuTNfYEzc]
|
||||
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',
|
||||
'nc4e9nlZPTuTNfYEzc',
|
||||
),
|
||||
}),
|
||||
'labels': set({
|
||||
}),
|
||||
'manufacturer': 'Tuya',
|
||||
'model': 'BW-SHP6',
|
||||
'model_id': 'EYfNTuTPZln9e4cn',
|
||||
'name': 'ZAS-01',
|
||||
'name_by_user': None,
|
||||
'primary_config_entry': <ANY>,
|
||||
'serial_number': None,
|
||||
'sw_version': None,
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[ncl7oi5d6hqmf1g0zc]
|
||||
DeviceRegistryEntrySnapshot({
|
||||
'area_id': None,
|
||||
@@ -6137,6 +6292,37 @@
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[qe8vvtx4nl21wjd3dytkx]
|
||||
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',
|
||||
'qe8vvtx4nl21wjd3dytkx',
|
||||
),
|
||||
}),
|
||||
'labels': set({
|
||||
}),
|
||||
'manufacturer': 'Tuya',
|
||||
'model': 'Genio Nebula & Blue Star Projector (unsupported)',
|
||||
'model_id': '3djw12ln4xtvv8eq',
|
||||
'name': 'Genio Nebula & Blue Star Projector',
|
||||
'name_by_user': None,
|
||||
'primary_config_entry': <ANY>,
|
||||
'serial_number': None,
|
||||
'sw_version': None,
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[qhgghufzqtwloqoqjd]
|
||||
DeviceRegistryEntrySnapshot({
|
||||
'area_id': None,
|
||||
@@ -6788,6 +6974,37 @@
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[slkkzcxa7yjqmetqlc]
|
||||
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',
|
||||
'slkkzcxa7yjqmetqlc',
|
||||
),
|
||||
}),
|
||||
'labels': set({
|
||||
}),
|
||||
'manufacturer': 'Tuya',
|
||||
'model': 'smart motor',
|
||||
'model_id': 'qtemqjy7axczkkls',
|
||||
'name': 'Dining 1',
|
||||
'name_by_user': None,
|
||||
'primary_config_entry': <ANY>,
|
||||
'serial_number': None,
|
||||
'sw_version': None,
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[snbu4b3vekhywztwqgcwy]
|
||||
DeviceRegistryEntrySnapshot({
|
||||
'area_id': None,
|
||||
@@ -6850,6 +7067,37 @@
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[srbr1lpaydiq7l5sgcdsw]
|
||||
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',
|
||||
'srbr1lpaydiq7l5sgcdsw',
|
||||
),
|
||||
}),
|
||||
'labels': set({
|
||||
}),
|
||||
'manufacturer': 'Tuya',
|
||||
'model': 'Smart multi-channel weather station ',
|
||||
'model_id': 's5l7qidyapl1rbrs',
|
||||
'name': 'Ventus test',
|
||||
'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,
|
||||
@@ -7904,6 +8152,37 @@
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[y1dkg3disbacmqfyjd]
|
||||
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',
|
||||
'y1dkg3disbacmqfyjd',
|
||||
),
|
||||
}),
|
||||
'labels': set({
|
||||
}),
|
||||
'manufacturer': 'Tuya',
|
||||
'model': 'Shop Light',
|
||||
'model_id': 'yfqmcabsid3gkd1y',
|
||||
'name': 'Shop Light 5',
|
||||
'name_by_user': None,
|
||||
'primary_config_entry': <ANY>,
|
||||
'serial_number': None,
|
||||
'sw_version': None,
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[y7eeatfzbtbyllk0qbnnz]
|
||||
DeviceRegistryEntrySnapshot({
|
||||
'area_id': None,
|
||||
@@ -7935,6 +8214,37 @@
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[ycttanlnpa0aivbfzc]
|
||||
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',
|
||||
'ycttanlnpa0aivbfzc',
|
||||
),
|
||||
}),
|
||||
'labels': set({
|
||||
}),
|
||||
'manufacturer': 'Tuya',
|
||||
'model': 'PZ003',
|
||||
'model_id': 'ExGgQmjt0SHMdlDZ',
|
||||
'name': 'Casa1',
|
||||
'name_by_user': None,
|
||||
'primary_config_entry': <ANY>,
|
||||
'serial_number': None,
|
||||
'sw_version': None,
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[yky6kunazmaitupzjd]
|
||||
DeviceRegistryEntrySnapshot({
|
||||
'area_id': None,
|
||||
|
||||
@@ -2981,6 +2981,77 @@
|
||||
'state': 'off',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[light.shop_light_5-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
}),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'max_color_temp_kelvin': 6500,
|
||||
'max_mireds': 500,
|
||||
'min_color_temp_kelvin': 2000,
|
||||
'min_mireds': 153,
|
||||
'supported_color_modes': list([
|
||||
<ColorMode.COLOR_TEMP: 'color_temp'>,
|
||||
]),
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
'config_subentry_id': <ANY>,
|
||||
'device_class': None,
|
||||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'light',
|
||||
'entity_category': None,
|
||||
'entity_id': 'light.shop_light_5',
|
||||
'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': 0,
|
||||
'translation_key': None,
|
||||
'unique_id': 'tuya.y1dkg3disbacmqfyjdswitch_led',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[light.shop_light_5-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'brightness': None,
|
||||
'color_mode': None,
|
||||
'color_temp': None,
|
||||
'color_temp_kelvin': None,
|
||||
'friendly_name': 'Shop Light 5',
|
||||
'hs_color': None,
|
||||
'max_color_temp_kelvin': 6500,
|
||||
'max_mireds': 500,
|
||||
'min_color_temp_kelvin': 2000,
|
||||
'min_mireds': 153,
|
||||
'rgb_color': None,
|
||||
'supported_color_modes': list([
|
||||
<ColorMode.COLOR_TEMP: 'color_temp'>,
|
||||
]),
|
||||
'supported_features': <LightEntityFeature: 0>,
|
||||
'xy_color': None,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'light.shop_light_5',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'off',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[light.sjiethoes-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
@@ -3831,3 +3902,64 @@
|
||||
'state': 'unavailable',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[light.white_noise_machine-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
}),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'supported_color_modes': list([
|
||||
<ColorMode.HS: 'hs'>,
|
||||
]),
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
'config_subentry_id': <ANY>,
|
||||
'device_class': None,
|
||||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'light',
|
||||
'entity_category': None,
|
||||
'entity_id': 'light.white_noise_machine',
|
||||
'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': 0,
|
||||
'translation_key': None,
|
||||
'unique_id': 'tuya.c9nbmrweturkgqktdyzbswitch_led',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[light.white_noise_machine-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'brightness': None,
|
||||
'color_mode': None,
|
||||
'friendly_name': 'White Noise Machine',
|
||||
'hs_color': None,
|
||||
'rgb_color': None,
|
||||
'supported_color_modes': list([
|
||||
<ColorMode.HS: 'hs'>,
|
||||
]),
|
||||
'supported_features': <LightEntityFeature: 0>,
|
||||
'xy_color': None,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'light.white_noise_machine',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'off',
|
||||
})
|
||||
# ---
|
||||
|
||||
@@ -2631,6 +2631,64 @@
|
||||
'state': '95.0',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[number.white_noise_machine_volume-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
}),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'max': 100.0,
|
||||
'min': 0.0,
|
||||
'mode': <NumberMode.AUTO: 'auto'>,
|
||||
'step': 1.0,
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
'config_subentry_id': <ANY>,
|
||||
'device_class': None,
|
||||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'number',
|
||||
'entity_category': <EntityCategory.CONFIG: 'config'>,
|
||||
'entity_id': 'number.white_noise_machine_volume',
|
||||
'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': 'Volume',
|
||||
'platform': 'tuya',
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'volume',
|
||||
'unique_id': 'tuya.c9nbmrweturkgqktdyzbvolume_set',
|
||||
'unit_of_measurement': '',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[number.white_noise_machine_volume-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'White Noise Machine Volume',
|
||||
'max': 100.0,
|
||||
'min': 0.0,
|
||||
'mode': <NumberMode.AUTO: 'auto'>,
|
||||
'step': 1.0,
|
||||
'unit_of_measurement': '',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'number.white_noise_machine_volume',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '40.0',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[number.wifi_smart_gas_boiler_thermostat_temperature_correction-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
|
||||
@@ -2239,6 +2239,63 @@
|
||||
'state': 'cancel',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[select.dining_1_motor_mode-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
}),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'options': list([
|
||||
'forward',
|
||||
'back',
|
||||
]),
|
||||
}),
|
||||
'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.dining_1_motor_mode',
|
||||
'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': 'Motor mode',
|
||||
'platform': 'tuya',
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'curtain_motor_mode',
|
||||
'unique_id': 'tuya.slkkzcxa7yjqmetqlccontrol_back_mode',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[select.dining_1_motor_mode-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'Dining 1 Motor mode',
|
||||
'options': list([
|
||||
'forward',
|
||||
'back',
|
||||
]),
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'select.dining_1_motor_mode',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'forward',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[select.elivco_kitchen_socket_indicator_light_mode-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
|
||||
@@ -628,6 +628,232 @@
|
||||
'state': '1204.0',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.ak1_current-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
}),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
'config_subentry_id': <ANY>,
|
||||
'device_class': None,
|
||||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'sensor',
|
||||
'entity_category': None,
|
||||
'entity_id': 'sensor.ak1_current',
|
||||
'has_entity_name': True,
|
||||
'hidden_by': None,
|
||||
'icon': None,
|
||||
'id': <ANY>,
|
||||
'labels': set({
|
||||
}),
|
||||
'name': None,
|
||||
'options': dict({
|
||||
'sensor': dict({
|
||||
'suggested_display_precision': 2,
|
||||
}),
|
||||
'sensor.private': dict({
|
||||
'suggested_unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
||||
}),
|
||||
}),
|
||||
'original_device_class': <SensorDeviceClass.CURRENT: 'current'>,
|
||||
'original_icon': None,
|
||||
'original_name': 'Current',
|
||||
'platform': 'tuya',
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'current',
|
||||
'unique_id': 'tuya.ZDldMHS0tjmQgGxEzccur_current',
|
||||
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.ak1_current-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'current',
|
||||
'friendly_name': 'AK1 Current',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.ak1_current',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'unavailable',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.ak1_power-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
}),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
'config_subentry_id': <ANY>,
|
||||
'device_class': None,
|
||||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'sensor',
|
||||
'entity_category': None,
|
||||
'entity_id': 'sensor.ak1_power',
|
||||
'has_entity_name': True,
|
||||
'hidden_by': None,
|
||||
'icon': None,
|
||||
'id': <ANY>,
|
||||
'labels': set({
|
||||
}),
|
||||
'name': None,
|
||||
'options': dict({
|
||||
'sensor': dict({
|
||||
'suggested_display_precision': 0,
|
||||
}),
|
||||
}),
|
||||
'original_device_class': <SensorDeviceClass.POWER: 'power'>,
|
||||
'original_icon': None,
|
||||
'original_name': 'Power',
|
||||
'platform': 'tuya',
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'power',
|
||||
'unique_id': 'tuya.ZDldMHS0tjmQgGxEzccur_power',
|
||||
'unit_of_measurement': 'W',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.ak1_power-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'power',
|
||||
'friendly_name': 'AK1 Power',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': 'W',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.ak1_power',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'unavailable',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.ak1_total_energy-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
}),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
'config_subentry_id': <ANY>,
|
||||
'device_class': None,
|
||||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'sensor',
|
||||
'entity_category': None,
|
||||
'entity_id': 'sensor.ak1_total_energy',
|
||||
'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': 'Total energy',
|
||||
'platform': 'tuya',
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'total_energy',
|
||||
'unique_id': 'tuya.ZDldMHS0tjmQgGxEzcadd_ele',
|
||||
'unit_of_measurement': '',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.ak1_total_energy-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'AK1 Total energy',
|
||||
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
||||
'unit_of_measurement': '',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.ak1_total_energy',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'unavailable',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.ak1_voltage-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
}),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
'config_subentry_id': <ANY>,
|
||||
'device_class': None,
|
||||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'sensor',
|
||||
'entity_category': None,
|
||||
'entity_id': 'sensor.ak1_voltage',
|
||||
'has_entity_name': True,
|
||||
'hidden_by': None,
|
||||
'icon': None,
|
||||
'id': <ANY>,
|
||||
'labels': set({
|
||||
}),
|
||||
'name': None,
|
||||
'options': dict({
|
||||
'sensor': dict({
|
||||
'suggested_display_precision': 0,
|
||||
}),
|
||||
'sensor.private': dict({
|
||||
'suggested_unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
||||
}),
|
||||
}),
|
||||
'original_device_class': <SensorDeviceClass.VOLTAGE: 'voltage'>,
|
||||
'original_icon': None,
|
||||
'original_name': 'Voltage',
|
||||
'platform': 'tuya',
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'voltage',
|
||||
'unique_id': 'tuya.ZDldMHS0tjmQgGxEzccur_voltage',
|
||||
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.ak1_voltage-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'voltage',
|
||||
'friendly_name': 'AK1 Voltage',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.ak1_voltage',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'unavailable',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.aqi_battery-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
@@ -5020,6 +5246,55 @@
|
||||
'state': '16.0',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.dining_1_last_operation_duration-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': 'sensor',
|
||||
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
||||
'entity_id': 'sensor.dining_1_last_operation_duration',
|
||||
'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': 'Last operation duration',
|
||||
'platform': 'tuya',
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'last_operation_duration',
|
||||
'unique_id': 'tuya.slkkzcxa7yjqmetqlctime_total',
|
||||
'unit_of_measurement': 'ms',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.dining_1_last_operation_duration-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'Dining 1 Last operation duration',
|
||||
'unit_of_measurement': 'ms',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.dining_1_last_operation_duration',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '500.0',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.door_garage_battery-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
@@ -20529,6 +20804,115 @@
|
||||
'state': '224.6',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.ventus_test_humidity-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
}),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
'config_subentry_id': <ANY>,
|
||||
'device_class': None,
|
||||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'sensor',
|
||||
'entity_category': None,
|
||||
'entity_id': 'sensor.ventus_test_humidity',
|
||||
'has_entity_name': True,
|
||||
'hidden_by': None,
|
||||
'icon': None,
|
||||
'id': <ANY>,
|
||||
'labels': set({
|
||||
}),
|
||||
'name': None,
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <SensorDeviceClass.HUMIDITY: 'humidity'>,
|
||||
'original_icon': None,
|
||||
'original_name': 'Humidity',
|
||||
'platform': 'tuya',
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'humidity',
|
||||
'unique_id': 'tuya.srbr1lpaydiq7l5sgcdswva_humidity',
|
||||
'unit_of_measurement': '%',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.ventus_test_humidity-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'humidity',
|
||||
'friendly_name': 'Ventus test Humidity',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': '%',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.ventus_test_humidity',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '42.0',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.ventus_test_temperature-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
}),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
'config_subentry_id': <ANY>,
|
||||
'device_class': None,
|
||||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'sensor',
|
||||
'entity_category': None,
|
||||
'entity_id': 'sensor.ventus_test_temperature',
|
||||
'has_entity_name': True,
|
||||
'hidden_by': None,
|
||||
'icon': None,
|
||||
'id': <ANY>,
|
||||
'labels': set({
|
||||
}),
|
||||
'name': None,
|
||||
'options': dict({
|
||||
'sensor': dict({
|
||||
'suggested_display_precision': 1,
|
||||
}),
|
||||
}),
|
||||
'original_device_class': <SensorDeviceClass.TEMPERATURE: 'temperature'>,
|
||||
'original_icon': None,
|
||||
'original_name': 'Temperature',
|
||||
'platform': 'tuya',
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'temperature',
|
||||
'unique_id': 'tuya.srbr1lpaydiq7l5sgcdswva_temperature',
|
||||
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.ventus_test_temperature-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'temperature',
|
||||
'friendly_name': 'Ventus test Temperature',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.ventus_test_temperature',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '20.9',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.vividstorm_screen_last_operation_duration-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
@@ -20856,6 +21240,115 @@
|
||||
'state': '7.0',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.weather_station_humidity-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
}),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
'config_subentry_id': <ANY>,
|
||||
'device_class': None,
|
||||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'sensor',
|
||||
'entity_category': None,
|
||||
'entity_id': 'sensor.weather_station_humidity',
|
||||
'has_entity_name': True,
|
||||
'hidden_by': None,
|
||||
'icon': None,
|
||||
'id': <ANY>,
|
||||
'labels': set({
|
||||
}),
|
||||
'name': None,
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <SensorDeviceClass.HUMIDITY: 'humidity'>,
|
||||
'original_icon': None,
|
||||
'original_name': 'Humidity',
|
||||
'platform': 'tuya',
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'humidity',
|
||||
'unique_id': 'tuya.0qtza8cv6q5rdxpxgcdswva_humidity',
|
||||
'unit_of_measurement': '%',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.weather_station_humidity-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'humidity',
|
||||
'friendly_name': 'Weather station Humidity',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': '%',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.weather_station_humidity',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '60.0',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.weather_station_temperature-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
}),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
'config_subentry_id': <ANY>,
|
||||
'device_class': None,
|
||||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'sensor',
|
||||
'entity_category': None,
|
||||
'entity_id': 'sensor.weather_station_temperature',
|
||||
'has_entity_name': True,
|
||||
'hidden_by': None,
|
||||
'icon': None,
|
||||
'id': <ANY>,
|
||||
'labels': set({
|
||||
}),
|
||||
'name': None,
|
||||
'options': dict({
|
||||
'sensor': dict({
|
||||
'suggested_display_precision': 1,
|
||||
}),
|
||||
}),
|
||||
'original_device_class': <SensorDeviceClass.TEMPERATURE: 'temperature'>,
|
||||
'original_icon': None,
|
||||
'original_name': 'Temperature',
|
||||
'platform': 'tuya',
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'temperature',
|
||||
'unique_id': 'tuya.0qtza8cv6q5rdxpxgcdswva_temperature',
|
||||
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.weather_station_temperature-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'temperature',
|
||||
'friendly_name': 'Weather station Temperature',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.weather_station_temperature',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '21.9',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.weihnachten3_current-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
@@ -22630,3 +23123,177 @@
|
||||
'state': '0.476',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.zas_01_current-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
}),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
'config_subentry_id': <ANY>,
|
||||
'device_class': None,
|
||||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'sensor',
|
||||
'entity_category': None,
|
||||
'entity_id': 'sensor.zas_01_current',
|
||||
'has_entity_name': True,
|
||||
'hidden_by': None,
|
||||
'icon': None,
|
||||
'id': <ANY>,
|
||||
'labels': set({
|
||||
}),
|
||||
'name': None,
|
||||
'options': dict({
|
||||
'sensor': dict({
|
||||
'suggested_display_precision': 2,
|
||||
}),
|
||||
'sensor.private': dict({
|
||||
'suggested_unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
||||
}),
|
||||
}),
|
||||
'original_device_class': <SensorDeviceClass.CURRENT: 'current'>,
|
||||
'original_icon': None,
|
||||
'original_name': 'Current',
|
||||
'platform': 'tuya',
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'current',
|
||||
'unique_id': 'tuya.nc4e9nlZPTuTNfYEzccur_current',
|
||||
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.zas_01_current-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'current',
|
||||
'friendly_name': 'ZAS-01 Current',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.zas_01_current',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '0.862',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.zas_01_power-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
}),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
'config_subentry_id': <ANY>,
|
||||
'device_class': None,
|
||||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'sensor',
|
||||
'entity_category': None,
|
||||
'entity_id': 'sensor.zas_01_power',
|
||||
'has_entity_name': True,
|
||||
'hidden_by': None,
|
||||
'icon': None,
|
||||
'id': <ANY>,
|
||||
'labels': set({
|
||||
}),
|
||||
'name': None,
|
||||
'options': dict({
|
||||
'sensor': dict({
|
||||
'suggested_display_precision': 0,
|
||||
}),
|
||||
}),
|
||||
'original_device_class': <SensorDeviceClass.POWER: 'power'>,
|
||||
'original_icon': None,
|
||||
'original_name': 'Power',
|
||||
'platform': 'tuya',
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'power',
|
||||
'unique_id': 'tuya.nc4e9nlZPTuTNfYEzccur_power',
|
||||
'unit_of_measurement': 'W',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.zas_01_power-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'power',
|
||||
'friendly_name': 'ZAS-01 Power',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': 'W',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.zas_01_power',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '1988.0',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.zas_01_voltage-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
}),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
'config_subentry_id': <ANY>,
|
||||
'device_class': None,
|
||||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'sensor',
|
||||
'entity_category': None,
|
||||
'entity_id': 'sensor.zas_01_voltage',
|
||||
'has_entity_name': True,
|
||||
'hidden_by': None,
|
||||
'icon': None,
|
||||
'id': <ANY>,
|
||||
'labels': set({
|
||||
}),
|
||||
'name': None,
|
||||
'options': dict({
|
||||
'sensor': dict({
|
||||
'suggested_display_precision': 0,
|
||||
}),
|
||||
'sensor.private': dict({
|
||||
'suggested_unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
||||
}),
|
||||
}),
|
||||
'original_device_class': <SensorDeviceClass.VOLTAGE: 'voltage'>,
|
||||
'original_icon': None,
|
||||
'original_name': 'Voltage',
|
||||
'platform': 'tuya',
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'voltage',
|
||||
'unique_id': 'tuya.nc4e9nlZPTuTNfYEzccur_voltage',
|
||||
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[sensor.zas_01_voltage-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'voltage',
|
||||
'friendly_name': 'ZAS-01 Voltage',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.zas_01_voltage',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '2393.0',
|
||||
})
|
||||
# ---
|
||||
|
||||
@@ -535,6 +535,55 @@
|
||||
'state': 'on',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[switch.ak1_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.ak1_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.ZDldMHS0tjmQgGxEzcswitch_1',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[switch.ak1_socket_1-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'outlet',
|
||||
'friendly_name': 'AK1 Socket 1',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'switch.ak1_socket_1',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'unavailable',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[switch.anbau_child_lock-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
@@ -2515,6 +2564,55 @@
|
||||
'state': 'off',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[switch.casa1_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.casa1_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.ycttanlnpa0aivbfzcswitch',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[switch.casa1_socket-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'outlet',
|
||||
'friendly_name': 'Casa1 Socket',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'switch.casa1_socket',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'unavailable',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[switch.cbe_pro_2_output_power_limit-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
@@ -10466,6 +10564,103 @@
|
||||
'state': 'unavailable',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[switch.white_noise_machine-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.white_noise_machine',
|
||||
'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': 0,
|
||||
'translation_key': None,
|
||||
'unique_id': 'tuya.c9nbmrweturkgqktdyzbswitch',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[switch.white_noise_machine-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'White Noise Machine',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'switch.white_noise_machine',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'off',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[switch.white_noise_machine_music-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.white_noise_machine_music',
|
||||
'has_entity_name': True,
|
||||
'hidden_by': None,
|
||||
'icon': None,
|
||||
'id': <ANY>,
|
||||
'labels': set({
|
||||
}),
|
||||
'name': None,
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': None,
|
||||
'original_icon': 'mdi:music',
|
||||
'original_name': 'Music',
|
||||
'platform': 'tuya',
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'music',
|
||||
'unique_id': 'tuya.c9nbmrweturkgqktdyzbswitch_music',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[switch.white_noise_machine_music-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'White Noise Machine Music',
|
||||
'icon': 'mdi:music',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'switch.white_noise_machine_music',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'off',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[switch.wifi_smart_gas_boiler_thermostat_child_lock-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
@@ -10754,3 +10949,52 @@
|
||||
'state': 'on',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[switch.zas_01_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.zas_01_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.nc4e9nlZPTuTNfYEzcswitch',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[switch.zas_01_socket-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'outlet',
|
||||
'friendly_name': 'ZAS-01 Socket',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'switch.zas_01_socket',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'off',
|
||||
})
|
||||
# ---
|
||||
|
||||
Reference in New Issue
Block a user