From 8df91e6a17fb1a5bb6ad2bddca4087857b8e0cb4 Mon Sep 17 00:00:00 2001 From: happyleavesaoc Date: Sat, 14 May 2016 12:29:57 -0700 Subject: [PATCH] numeric state: validate multiple entities (#2066) * validate multiple entities * point to current entity --- homeassistant/components/automation/numeric_state.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/automation/numeric_state.py b/homeassistant/components/automation/numeric_state.py index 8a5c993b683..3a148b0880f 100644 --- a/homeassistant/components/automation/numeric_state.py +++ b/homeassistant/components/automation/numeric_state.py @@ -16,7 +16,7 @@ from homeassistant.helpers import condition, config_validation as cv TRIGGER_SCHEMA = vol.All(vol.Schema({ vol.Required(CONF_PLATFORM): 'numeric_state', - vol.Required(CONF_ENTITY_ID): cv.entity_id, + vol.Required(CONF_ENTITY_ID): cv.entity_ids, CONF_BELOW: vol.Coerce(float), CONF_ABOVE: vol.Coerce(float), vol.Optional(CONF_VALUE_TEMPLATE): cv.template, @@ -41,7 +41,7 @@ def trigger(hass, config, action): variables = { 'trigger': { 'platform': 'numeric_state', - 'entity_id': entity_id, + 'entity_id': entity, 'below': below, 'above': above, }