mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-26 02:37:03 +00:00
Update list
This commit is contained in:
parent
fe13d53fe5
commit
a9ea2066de
@ -67,7 +67,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
|||||||
vol.Optional(CONF_PORT, default=DEFAULT_PORT): cv.port,
|
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.
|
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({
|
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
...
|
...
|
||||||
vol.Optional(CONF_MONITORED_VARIABLES, default=[]):
|
vol.Optional(CONF_MONITORED_VARIABLES, default=[]):
|
||||||
[vol.In(SENSOR_TYPES)],
|
vol.All(ensure_list, [vol.In(SENSOR_TYPES)]),
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user