Skip to content

Commit 22e4678

Browse files
committed
Corrected test for device that incorrectly added switch
1 parent 58e7215 commit 22e4678

File tree

1 file changed

+4
-53
lines changed

1 file changed

+4
-53
lines changed

tests/data/devices/tze200-2aaelwxk-ts0225.json

Lines changed: 4 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -456,12 +456,7 @@
456456
"id": "0x000e",
457457
"name": "state_text",
458458
"zcl_type": "unk",
459-
"value": [
460-
"None",
461-
"Large",
462-
"Small",
463-
"Static"
464-
]
459+
"value": ["None", "Large", "Small", "Static"]
465460
}
466461
]
467462
}
@@ -501,7 +496,7 @@
501496
"entity_category": null,
502497
"entity_registry_enabled_default": true,
503498
"enabled": true,
504-
"primary": false,
499+
"primary": true,
505500
"cluster_handlers": [
506501
{
507502
"class_name": "OccupancySensingClusterHandler",
@@ -568,9 +563,7 @@
568563
"available": true,
569564
"group_id": null,
570565
"command": "identify",
571-
"args": [
572-
5
573-
],
566+
"args": [5],
574567
"kwargs": {}
575568
},
576569
"state": {
@@ -1427,48 +1420,6 @@
14271420
}
14281421
],
14291422
"switch": [
1430-
{
1431-
"info_object": {
1432-
"fallback_name": null,
1433-
"unique_id": "ab:cd:ef:12:94:85:f7:5f-1-6",
1434-
"migrate_unique_ids": [],
1435-
"platform": "switch",
1436-
"class_name": "Switch",
1437-
"translation_key": "switch",
1438-
"translation_placeholders": null,
1439-
"device_class": null,
1440-
"state_class": null,
1441-
"entity_category": null,
1442-
"entity_registry_enabled_default": true,
1443-
"enabled": true,
1444-
"primary": true,
1445-
"cluster_handlers": [
1446-
{
1447-
"class_name": "OnOffClusterHandler",
1448-
"generic_id": "cluster_handler_0x0006",
1449-
"endpoint_id": 1,
1450-
"cluster": {
1451-
"id": 6,
1452-
"name": "On/Off",
1453-
"type": "server"
1454-
},
1455-
"id": "1:0x0006",
1456-
"unique_id": "ab:cd:ef:12:94:85:f7:5f:1:0x0006",
1457-
"status": "INITIALIZED",
1458-
"value_attribute": "on_off"
1459-
}
1460-
],
1461-
"device_ieee": "ab:cd:ef:12:94:85:f7:5f",
1462-
"endpoint_id": 1,
1463-
"available": true,
1464-
"group_id": null
1465-
},
1466-
"state": {
1467-
"class_name": "Switch",
1468-
"state": false,
1469-
"available": true
1470-
}
1471-
},
14721423
{
14731424
"info_object": {
14741425
"fallback_name": "LED indicator",
@@ -1521,4 +1472,4 @@
15211472
},
15221473
"neighbors": [],
15231474
"routes": []
1524-
}
1475+
}

0 commit comments

Comments
 (0)