Add domain to boolean (#3500)

pull/3502/head
Johann Kellerman 2016-09-23 23:10:12 +02:00 committed by Paulus Schoutsen
parent 8d0009b894
commit 1b9d867d60
1 changed files with 4 additions and 4 deletions

View File

@ -27,12 +27,12 @@ SERVICE_SCHEMA = vol.Schema({
vol.Optional(ATTR_ENTITY_ID): cv.entity_ids,
})
CONFIG_SCHEMA = vol.Schema({
cv.slug: {
CONFIG_SCHEMA = vol.Schema({DOMAIN: {
cv.slug: vol.Any({
vol.Optional(CONF_NAME): cv.string,
vol.Optional(CONF_INITIAL): cv.boolean,
vol.Optional(CONF_INITIAL, default=False): cv.boolean,
vol.Optional(CONF_ICON): cv.icon,
}}, extra=vol.ALLOW_EXTRA)
}, None)}}, extra=vol.ALLOW_EXTRA)
def is_on(hass, entity_id):