From 99fa91f48021e34b96df4850c8765d9a8eca4766 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Mon, 5 Jun 2017 12:45:43 +0200 Subject: [PATCH] Add better validator for device --- hassio/api/homeassistant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hassio/api/homeassistant.py b/hassio/api/homeassistant.py index e5b7c761d..b492a8dfc 100644 --- a/hassio/api/homeassistant.py +++ b/hassio/api/homeassistant.py @@ -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({