Monitor all sensor types by default to rtorrent (#17894)

* Default to all sensor types for monitoring

* Cleanup code

* 👀

* Chop long line
pull/17930/head
Richard Patel 2018-10-28 23:37:28 +01:00 committed by Fabian Affolter
parent 62752e0065
commit b62b3b26f2
1 changed files with 2 additions and 2 deletions

View File

@ -28,8 +28,8 @@ SENSOR_TYPES = {
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Required(CONF_URL): cv.url,
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
vol.Optional(CONF_MONITORED_VARIABLES, default=[]): vol.All(
cv.ensure_list, [vol.In(SENSOR_TYPES)]),
vol.Optional(CONF_MONITORED_VARIABLES, default=list(SENSOR_TYPES)):
vol.All(cv.ensure_list, [vol.In(SENSOR_TYPES)]),
})