mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 21:36:52 +00:00
Fix template sensor types in documentation (#37196)
The example configuration yamls on this page show the `sensor` item containing a list of sensor entities, but the documentation for the sensor entity says its type is a map. The type for the sensor and binary_sensor items should be a list.
This commit is contained in:
parent
829ca70add
commit
0ece550333
@ -156,7 +156,7 @@ variables:
|
||||
sensor:
|
||||
description: List of sensors
|
||||
required: true
|
||||
type: map
|
||||
type: list
|
||||
keys:
|
||||
state:
|
||||
description: "Defines a template to get the state of the sensor. If the sensor is numeric, i.e. it has a `state_class` or a `unit_of_measurement`, the state template must render to a number or to `none`. The state template must not render to a string, including `unknown` or `unavailable`. An `availability` template may be defined to suppress rendering of the state template."
|
||||
@ -180,7 +180,7 @@ sensor:
|
||||
binary_sensor:
|
||||
description: List of binary sensors
|
||||
required: true
|
||||
type: map
|
||||
type: list
|
||||
keys:
|
||||
state:
|
||||
description: The sensor is `on` if the template evaluates as `True`, `yes`, `on`, `enable` or a positive number. Any other value will render it as `off`. The actual appearance in the frontend (`Open`/`Closed`, `Detected`/`Clear` etc) depends on the sensor’s device_class value
|
||||
|
Loading…
x
Reference in New Issue
Block a user