Make MQTT discovery entity_id override example accurate (#23587)

This commit is contained in:
Juan Carlos Guzmán Islas 2022-08-05 01:50:45 -07:00 committed by GitHub
parent d76d754bcf
commit bd0fad4edc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`.