From 2b4f0cb5a163c419755e14647e3dd61132984033 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 23 Aug 2016 00:14:45 -0700 Subject: [PATCH] Fix broken template sensor tests --- homeassistant/components/sensor/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/sensor/template.py b/homeassistant/components/sensor/template.py index 75cbfa97c7d..961b6f39c17 100644 --- a/homeassistant/components/sensor/template.py +++ b/homeassistant/components/sensor/template.py @@ -39,7 +39,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None): for device, device_config in config[CONF_SENSORS].items(): state_template = device_config[CONF_VALUE_TEMPLATE] - entity_ids = device_config[ATTR_ENTITY_ID, MATCH_ALL] + entity_ids = device_config[ATTR_ENTITY_ID] friendly_name = device_config.get(ATTR_FRIENDLY_NAME, device) unit_of_measurement = device_config.get(ATTR_UNIT_OF_MEASUREMENT)