From 651cd147133ccc2583097158e6f336fd3435e339 Mon Sep 17 00:00:00 2001 From: Marc Randolph Date: Thu, 13 Jan 2022 12:05:46 -0600 Subject: [PATCH] Remove trailing comma in JSON, and add a commas that were missing in text (#21178) --- source/_docs/mqtt/discovery.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_docs/mqtt/discovery.markdown b/source/_docs/mqtt/discovery.markdown index 35908910a26..22d6dec9248 100644 --- a/source/_docs/mqtt/discovery.markdown +++ b/source/_docs/mqtt/discovery.markdown @@ -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" } ```