From 20ed07cc5cd274c18f6ff01e46d2cdb6f7e16742 Mon Sep 17 00:00:00 2001 From: Aaron Bach Date: Tue, 23 Jul 2019 14:32:28 -0600 Subject: [PATCH] Add area support to input text service schemas (#25434) --- homeassistant/components/input_text/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/input_text/__init__.py b/homeassistant/components/input_text/__init__.py index 48a467b54a2..8672dc9ddce 100644 --- a/homeassistant/components/input_text/__init__.py +++ b/homeassistant/components/input_text/__init__.py @@ -4,8 +4,9 @@ import logging import voluptuous as vol import homeassistant.helpers.config_validation as cv +from homeassistant.helpers.config_validation import ENTITY_SERVICE_SCHEMA from homeassistant.const import ( - ATTR_ENTITY_ID, ATTR_UNIT_OF_MEASUREMENT, CONF_ICON, CONF_NAME, CONF_MODE) + ATTR_UNIT_OF_MEASUREMENT, CONF_ICON, CONF_NAME, CONF_MODE) from homeassistant.helpers.entity_component import EntityComponent from homeassistant.helpers.restore_state import RestoreEntity @@ -29,8 +30,7 @@ ATTR_MODE = 'mode' SERVICE_SET_VALUE = 'set_value' -SERVICE_SET_VALUE_SCHEMA = vol.Schema({ - vol.Optional(ATTR_ENTITY_ID): cv.entity_ids, +SERVICE_SET_VALUE_SCHEMA = ENTITY_SERVICE_SCHEMA.extend({ vol.Required(ATTR_VALUE): cv.string, })