From 205e83a6d51bab5d6f7252823c09b5a1af08c8b4 Mon Sep 17 00:00:00 2001 From: Anders Melchiorsen Date: Tue, 6 Mar 2018 04:45:40 +0100 Subject: [PATCH] Fix netatmo sensor warning from invalid Voluptuous default (#12933) --- homeassistant/components/sensor/netatmo.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/homeassistant/components/sensor/netatmo.py b/homeassistant/components/sensor/netatmo.py index 8ec6de60fb9..4dddaf45aa4 100644 --- a/homeassistant/components/sensor/netatmo.py +++ b/homeassistant/components/sensor/netatmo.py @@ -18,8 +18,6 @@ import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) -ATTR_MODULE = 'modules' - CONF_MODULES = 'modules' CONF_STATION = 'station' @@ -54,7 +52,7 @@ SENSOR_TYPES = { } MODULE_SCHEMA = vol.Schema({ - vol.Required(cv.string, default=[]): + vol.Required(cv.string): vol.All(cv.ensure_list, [vol.In(SENSOR_TYPES)]), })