mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Fix netatmo sensor warning from invalid Voluptuous default (#12933)
This commit is contained in:
parent
5063464d5e
commit
205e83a6d5
@ -18,8 +18,6 @@ import homeassistant.helpers.config_validation as cv
|
|||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
ATTR_MODULE = 'modules'
|
|
||||||
|
|
||||||
CONF_MODULES = 'modules'
|
CONF_MODULES = 'modules'
|
||||||
CONF_STATION = 'station'
|
CONF_STATION = 'station'
|
||||||
|
|
||||||
@ -54,7 +52,7 @@ SENSOR_TYPES = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MODULE_SCHEMA = vol.Schema({
|
MODULE_SCHEMA = vol.Schema({
|
||||||
vol.Required(cv.string, default=[]):
|
vol.Required(cv.string):
|
||||||
vol.All(cv.ensure_list, [vol.In(SENSOR_TYPES)]),
|
vol.All(cv.ensure_list, [vol.In(SENSOR_TYPES)]),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user