Update list

This commit is contained in:
Fabian Affolter 2016-08-18 07:49:20 +02:00
parent fe13d53fe5
commit a9ea2066de
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -67,7 +67,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Optional(CONF_PORT, default=DEFAULT_PORT): cv.port,
```
### {% linkable_title Sensor types %}
### {% linkable_title Lists %}
If a sensor has a pre-defined list of available options it should be tested if the configuration entry matches it.
@ -80,7 +80,7 @@ SENSOR_TYPES = {
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
...
vol.Optional(CONF_MONITORED_VARIABLES, default=[]):
[vol.In(SENSOR_TYPES)],
vol.All(ensure_list, [vol.In(SENSOR_TYPES)]),
```