Config Validator: schema_with_slug_keys (#20298)

* schema_with_slug_keys

* Update config_validation.py

* Update config_validation.py
This commit is contained in:
Johann Kellerman authored and Paulus Schoutsen committed 2019-01-21 21:21:00 -08:00
1 parent 5945929e7e
commit ec7f2657cd
38 files changed
+66 -66

No files matched your search

+1 -3
View File
@@ -21,9 +21,7 @@ DOMAIN = 'shell_command'
_LOGGER = logging.getLogger(__name__)
CONFIG_SCHEMA = vol.Schema({
DOMAIN: vol.Schema({
cv.slug: cv.string,
}),
DOMAIN: cv.schema_with_slug_keys(cv.string),
}, extra=vol.ALLOW_EXTRA)