Add Neighbors & Endpoint Names to zha/devices reply (#40748)
* Add Neighbors & Endpoint Names to zha/devices reply. * Remove unused const * Add tests & correct const name. * Change tests to use corresponding enum device_type
This commit is contained in:
1 parent
a2d2b7842d
commit
a8b68dc4f9
16 files changed
+97
-24
No files matched your search
@@ -33,7 +33,7 @@ def zigpy_device(zigpy_device_mock):
|
||||
1: {
|
||||
"in_clusters": [general.Basic.cluster_id, general.OnOff.cluster_id],
|
||||
"out_clusters": [],
|
||||
"device_type": 0,
|
||||
"device_type": zha.DeviceType.ON_OFF_SWITCH,
|
||||
}
|
||||
}
|
||||
return zigpy_device_mock(endpoints)
|
||||
|
||||
Reference in new issue
Block a user