Monitor all sensor types by default to rtorrent (#17894)
* Default to all sensor types for monitoring
* Cleanup code
* 👀
* Chop long line
pull/17930/head
parent
62752e0065
commit
b62b3b26f2
|
@ -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)]),
|
||||
})
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue