Fix typo in Hue device triggers - use enum value (#61498)

This commit is contained in:
Marcel van der Veldt 2021-12-11 17:12:33 +01:00 committed by GitHub
parent a17031630f
commit 0abfc90870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ async def async_get_triggers(bridge: "HueBridge", device_entry: DeviceEntry):
CONF_DEVICE_ID: device_entry.id,
CONF_DOMAIN: DOMAIN,
CONF_PLATFORM: "device",
CONF_TYPE: event_type,
CONF_TYPE: event_type.value,
CONF_SUBTYPE: resource.metadata.control_id,
CONF_UNIQUE_ID: resource.id,
}

View File

@ -71,7 +71,7 @@ async def test_get_triggers(hass, mock_bridge_v2, v2_resources_test_data, device
"domain": hue.DOMAIN,
"device_id": hue_wall_switch_device.id,
"unique_id": resource_id,
"type": event_type,
"type": event_type.value,
"subtype": control_id,
}
for event_type in (