Document sensor id and how it relates to the name (#1769)

This commit is contained in:
Valentin Ochs 2022-02-19 12:40:26 +01:00 committed by GitHub
parent dd630b3cfb
commit c0c3a4c6c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,8 @@ override them if you want to.
Configuration variables:
- **name** (**Required**, string): The name for the sensor.
- **id** (*Optional*, string): Manually specify the ID for code generation. At least one of **id** and **name** must be specified.
- **name** (*Optional*, string): The name for the sensor. At least one of **id** and **name** must be specified.
- **unit_of_measurement** (*Optional*, string): Manually set the unit
of measurement the sensor should advertise its values with. This does
not actually do any maths (conversion between units).