Skip to content

Commit

Permalink
Make MQTT discovery entity_id override example accurate (home-assista…
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanCarlosGI authored Aug 5, 2022
1 parent d76d754 commit bd0fad4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/_docs/mqtt/discovery.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

0 comments on commit bd0fad4

Please sign in to comment.