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:
Samantha authored and GitHub committed 2020-09-29 15:25:05 -04:00
1 parent a2d2b7842d
commit a8b68dc4f9
16 files changed
+97 -24

No files matched your search

+1 -1
View File
@@ -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)