Config Validator: schema_with_slug_keys (#20298)
* schema_with_slug_keys * Update config_validation.py * Update config_validation.py
This commit is contained in:
1 parent
4b3cdb9f4e
commit
6511e11ec9
38 files changed
+66
-66
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user