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:
Michael Dokolin 2020-01-24 12:40:00 +01:00 committed by springstan
parent 6ff572d1dd
commit 30249d1428
2 changed files with 6 additions and 2 deletions

View File

@ -134,7 +134,9 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
}
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(
CoverTemplate(

View File

@ -94,7 +94,9 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
}
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(
LightTemplate(