Add support for unit of measurement in MQTT number platform (#19948)

This commit is contained in:
Franck Nijhof 2021-10-25 10:12:11 +02:00 committed by GitHub
parent 757ecfe5e8
commit 70724f016e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,6 +164,10 @@ unique_id:
description: An ID that uniquely identifies this Number. If two Numbers have the same unique ID Home Assistant will raise an exception.
required: false
type: string
unit_of_measurement:
description: Defines the unit of measurement of the sensor, if any.
required: false
type: string
value_template:
description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract the value."
required: false