From 30249d14282eec04356da8a335f5478a66d0dfa5 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 24 Jan 2020 12:40:00 +0100 Subject: [PATCH] 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 --- homeassistant/components/template/cover.py | 4 +++- homeassistant/components/template/light.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/template/cover.py b/homeassistant/components/template/cover.py index f6678067d70..13828b960fd 100644 --- a/homeassistant/components/template/cover.py +++ b/homeassistant/components/template/cover.py @@ -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( diff --git a/homeassistant/components/template/light.py b/homeassistant/components/template/light.py index 2fb240e1180..0f70f8a358b 100644 --- a/homeassistant/components/template/light.py +++ b/homeassistant/components/template/light.py @@ -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(