Add missing unique_id part to Switch MQTT docs (#13907)

* Add missing `unique_id` part to Switch MQTT docs

`unique_id` is referenced within the doc, but isn't documented. I've copied the text from `Climate`.

* Remove references to HVAC
This commit is contained in:
Michael Bisbjerg 2020-07-12 14:27:18 +02:00 committed by GitHub
parent 12a9ba6405
commit 11dcf2465c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,6 +135,10 @@ state_topic:
description: The MQTT topic subscribed to receive state updates.
required: false
type: string
unique_id:
description: An ID that uniquely identifies this switch device. If two switches have the same unique ID, Home Assistant will raise an exception.
required: false
type: string
value_template:
description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract device's state from the `state_topic`. To determine the switches's state result of this template will be compared to `state_on` and `state_off`."
required: false