mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix typo in Hue device triggers - use enum value (#61498)
This commit is contained in:
parent
a17031630f
commit
0abfc90870
@ -109,7 +109,7 @@ async def async_get_triggers(bridge: "HueBridge", device_entry: DeviceEntry):
|
|||||||
CONF_DEVICE_ID: device_entry.id,
|
CONF_DEVICE_ID: device_entry.id,
|
||||||
CONF_DOMAIN: DOMAIN,
|
CONF_DOMAIN: DOMAIN,
|
||||||
CONF_PLATFORM: "device",
|
CONF_PLATFORM: "device",
|
||||||
CONF_TYPE: event_type,
|
CONF_TYPE: event_type.value,
|
||||||
CONF_SUBTYPE: resource.metadata.control_id,
|
CONF_SUBTYPE: resource.metadata.control_id,
|
||||||
CONF_UNIQUE_ID: resource.id,
|
CONF_UNIQUE_ID: resource.id,
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ async def test_get_triggers(hass, mock_bridge_v2, v2_resources_test_data, device
|
|||||||
"domain": hue.DOMAIN,
|
"domain": hue.DOMAIN,
|
||||||
"device_id": hue_wall_switch_device.id,
|
"device_id": hue_wall_switch_device.id,
|
||||||
"unique_id": resource_id,
|
"unique_id": resource_id,
|
||||||
"type": event_type,
|
"type": event_type.value,
|
||||||
"subtype": control_id,
|
"subtype": control_id,
|
||||||
}
|
}
|
||||||
for event_type in (
|
for event_type in (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user