mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
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:
@@ -34,7 +34,7 @@ IEEE_GROUPABLE_DEVICE3 = "03:2d:6f:00:0a:90:69:e7"
|
||||
|
||||
LIGHT_ON_OFF = {
|
||||
1: {
|
||||
"device_type": zigpy.profiles.zha.DeviceType.ON_OFF_LIGHT,
|
||||
"device_type": zha.DeviceType.ON_OFF_LIGHT,
|
||||
"in_clusters": [
|
||||
general.Basic.cluster_id,
|
||||
general.Identify.cluster_id,
|
||||
@@ -46,7 +46,7 @@ LIGHT_ON_OFF = {
|
||||
|
||||
LIGHT_LEVEL = {
|
||||
1: {
|
||||
"device_type": zigpy.profiles.zha.DeviceType.DIMMABLE_LIGHT,
|
||||
"device_type": zha.DeviceType.DIMMABLE_LIGHT,
|
||||
"in_clusters": [
|
||||
general.Basic.cluster_id,
|
||||
general.LevelControl.cluster_id,
|
||||
@@ -58,7 +58,7 @@ LIGHT_LEVEL = {
|
||||
|
||||
LIGHT_COLOR = {
|
||||
1: {
|
||||
"device_type": zigpy.profiles.zha.DeviceType.COLOR_DIMMABLE_LIGHT,
|
||||
"device_type": zha.DeviceType.COLOR_DIMMABLE_LIGHT,
|
||||
"in_clusters": [
|
||||
general.Basic.cluster_id,
|
||||
general.Identify.cluster_id,
|
||||
|
||||
Reference in New Issue
Block a user