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:
Brant Knudson 2025-02-05 06:01:53 -06:00 committed by GitHub
parent 829ca70add
commit 0ece550333
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 sensors device_class value