From bd0fad4edc584b9dcb2f369a6107cda355f80bc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Guzm=C3=A1n=20Islas?= Date: Fri, 5 Aug 2022 01:50:45 -0700 Subject: [PATCH] Make MQTT discovery entity_id override example accurate (#23587) --- 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 863d26a6ce1..ec336658654 100644 --- a/source/_docs/mqtt/discovery.markdown +++ b/source/_docs/mqtt/discovery.markdown @@ -440,10 +440,10 @@ The entity id is automatically generated from the entity's name. All MQTT entity ```json { "name":"My Super Device", - "object_id":"device1", + "object_id":"my_super_device", "state_topic": "homeassistant/sensor/device1/state" } ``` -In the example above, the entity_id will be `sensor.device1` instead of `sensor.my_super_device`. +In the example above, the entity_id will be `sensor.my_super_device` instead of `sensor.device1`.