mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Fix Template components to process entity_id configuration option (#31084)
* Fix Template Cover component to process entity_id configuration option * Fix Template Light component to process entity_id configuration option * Empty commit to re-trigger build Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
6ff572d1dd
commit
30249d1428
@ -134,7 +134,9 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
|
|||||||
}
|
}
|
||||||
|
|
||||||
initialise_templates(hass, templates)
|
initialise_templates(hass, templates)
|
||||||
entity_ids = extract_entities(device, "cover", None, templates)
|
entity_ids = extract_entities(
|
||||||
|
device, "cover", device_config.get(CONF_ENTITY_ID), templates
|
||||||
|
)
|
||||||
|
|
||||||
covers.append(
|
covers.append(
|
||||||
CoverTemplate(
|
CoverTemplate(
|
||||||
|
@ -94,7 +94,9 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
|
|||||||
}
|
}
|
||||||
|
|
||||||
initialise_templates(hass, templates)
|
initialise_templates(hass, templates)
|
||||||
entity_ids = extract_entities(device, "light", None, templates)
|
entity_ids = extract_entities(
|
||||||
|
device, "light", device_config.get(CONF_ENTITY_ID), templates
|
||||||
|
)
|
||||||
|
|
||||||
lights.append(
|
lights.append(
|
||||||
LightTemplate(
|
LightTemplate(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user