Add better validator for device

This commit is contained in:
Pascal Vizeli 2017-06-05 12:45:43 +02:00 committed by GitHub
parent 711e199977
commit 99fa91f480

View File

@ -11,7 +11,7 @@ _LOGGER = logging.getLogger(__name__)
SCHEMA_OPTIONS = vol.Schema({
vol.Optional(ATTR_DEVICES): [vol.Coerce(str)],
vol.Optional(ATTR_DEVICES): [vol.Match(r"^[^/]*$")],
})
SCHEMA_VERSION = vol.Schema({