Fix missing unique id in SQL (#99641)

This commit is contained in:
G Johansson 2023-09-04 22:31:53 +02:00 committed by Bram Kragten
parent 2a7c12013f
commit f0cf539e15

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