Minor tidy of voluptuous. (#2945)
parent
5abb46a809
commit
dfd76fc0e6
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue