esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 34 forks source link

Entity name is doubled #5366

Open mbo18 opened 6 months ago

mbo18 commented 6 months ago

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/):

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

Capture d’écran 2024-01-12 à 10 12 27

Which 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

esphome:
  name: bureau-plug
  friendly_name: "Bureau Plug"

esp8266:
  board: esp01_1m

binary_sensor:
  - platform: status
    name: "Status"

switch:
  - platform: gpio
    id: relay
    name: None
    device_class: outlet
    pin: GPIO12
    on_turn_on:
      - light.turn_on: state_led
    on_turn_off:
      - light.turn_off: state_led

Anything in the logs that might be useful for us?

No response

Additional information

No response

kaechele commented 6 months ago

Same here.

Possibly related:

github-actions[bot] commented 2 months ago

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.

mbo18 commented 2 months ago

Not stale