Fix missing unique id in SQL (#99641)

This commit is contained in:
G Johansson
2023-09-04 22:31:53 +02:00
committed by GitHub
parent de73cafc8b
commit b8f35fb577

View File

@@ -123,7 +123,7 @@ async def async_setup_entry(
value_template.hass = hass
name_template = Template(name, hass)
trigger_entity_config = {CONF_NAME: name_template}
trigger_entity_config = {CONF_NAME: name_template, CONF_UNIQUE_ID: entry.entry_id}
for key in TRIGGER_ENTITY_OPTIONS:
if key not in entry.options:
continue