mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-27 11:06:32 +00:00
Add better validator for device
This commit is contained in:
parent
711e199977
commit
99fa91f480
@ -11,7 +11,7 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
SCHEMA_OPTIONS = vol.Schema({
|
SCHEMA_OPTIONS = vol.Schema({
|
||||||
vol.Optional(ATTR_DEVICES): [vol.Coerce(str)],
|
vol.Optional(ATTR_DEVICES): [vol.Match(r"^[^/]*$")],
|
||||||
})
|
})
|
||||||
|
|
||||||
SCHEMA_VERSION = vol.Schema({
|
SCHEMA_VERSION = vol.Schema({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user