mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix missing unique id in SQL (#99641)
This commit is contained in:
parent
de73cafc8b
commit
b8f35fb577
@ -123,7 +123,7 @@ async def async_setup_entry(
|
|||||||
value_template.hass = hass
|
value_template.hass = hass
|
||||||
|
|
||||||
name_template = Template(name, 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:
|
for key in TRIGGER_ENTITY_OPTIONS:
|
||||||
if key not in entry.options:
|
if key not in entry.options:
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user