Note
If you have a friendly_name set for your device and you want the switch to use that name, you can set name: None.
With the Yaml below, this is the entities created in HA:
When name is None (example with the switch): switch.bureau_plug_bureau_plug when I expect switch.bureau_plug
When name is not None (example with the binary sensor): binary_sensor.bureau_plug_status which is fine
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The problem
I've added several new devices to ESPHome recently and when in the configuration name = none, the entity name in HA is doubled.
From the doc (here: https://esphome.io/components/switch/):
With the Yaml below, this is the entities created in HA: When name is None (example with the switch):
switch.bureau_plug_bureau_plug
when I expectswitch.bureau_plug
When name is not None (example with the binary sensor): binary_sensor.bureau_plug_status which is fineWhich version of ESPHome has the issue?
2023.12.5
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2024.1.2
What platform are you using?
ESP8266
Board
All
Component causing the issue
No response
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response