Remove trailing comma in JSON, and add a commas that were missing in text (#21178)

This commit is contained in:
Marc Randolph 2022-01-13 12:05:46 -06:00 committed by GitHub
parent 8b3e5324f6
commit 651cd14713
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ description: "Instructions on how to setup MQTT Discovery within Home Assistant.
logo: mqtt.png
---
The discovery of MQTT devices will enable one to use MQTT devices with only minimal configuration effort on the side of Home Assistant. The configuration is done on the device itself and the topic used by the device. Similar to the [HTTP binary sensor](/integrations/http/#binary-sensor) and the [HTTP sensor](/integrations/http/#sensor). To prevent multiple identical entries if a device reconnects a unique identifier is necessary. Two parts are required on the device side: The configuration topic which contains the necessary device type and unique identifier and the remaining device configuration without the device type.
The discovery of MQTT devices will enable one to use MQTT devices with only minimal configuration effort on the side of Home Assistant. The configuration is done on the device itself and the topic used by the device. Similar to the [HTTP binary sensor](/integrations/http/#binary-sensor) and the [HTTP sensor](/integrations/http/#sensor). To prevent multiple identical entries if a device reconnects, a unique identifier is necessary. Two parts are required on the device side: The configuration topic which contains the necessary device type and unique identifier, and the remaining device configuration without the device type.
Supported by MQTT discovery:
@ -501,7 +501,7 @@ The entity id is automatically generated from the entity's name. All MQTT entity
{
"name":"My Super Device",
"object_id":"device1",
"state_topic": "homeassistant/sensor/device1/state",
"state_topic": "homeassistant/sensor/device1/state"
}
```