Minor tidy of voluptuous. (#2945)

pull/2768/merge
Greg Dowling 2016-08-23 07:57:07 +01:00 committed by Paulus Schoutsen
parent 5abb46a809
commit dfd76fc0e6
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ SWITCH_SCHEMA = vol.Schema({
vol.Required(ON_ACTION): cv.SCRIPT_SCHEMA,
vol.Required(OFF_ACTION): cv.SCRIPT_SCHEMA,
vol.Optional(ATTR_FRIENDLY_NAME): cv.string,
vol.Optional(ATTR_ENTITY_ID): cv.entity_ids
vol.Optional(ATTR_ENTITY_ID, default=MATCH_ALL): cv.entity_ids
})
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
@ -50,7 +50,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
state_template = device_config[CONF_VALUE_TEMPLATE]
on_action = device_config[ON_ACTION]
off_action = device_config[OFF_ACTION]
entity_ids = device_config.get(ATTR_ENTITY_ID, MATCH_ALL)
entity_ids = device_config[ATTR_ENTITY_ID]
switches.append(
SwitchTemplate(