frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Disabled device entities keep original name after renaming device

Open mrspouse opened this issue 1 year ago • 0 comments

Checklist

  • [X] I have updated to the latest available Home Assistant version.
  • [X] I have cleared the cache of my browser.
  • [X] I have tried a different browser to see if it is related to my browser.
  • [X] I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

When renaming an entity disabled entities are not renamed

Describe the behavior you expected

All entities containing the old device name should be renamed, not just active ones

Steps to reproduce the issue

  1. Open device
  2. Click Edit in Top Right
  3. Update Device Name
  4. Do you also want to rename the entity IDs of your entities? - click RENAME...

What version of Home Assistant Core has the issue?

core- 2024.10.2

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

No response

Which operating system are you using to run this browser?

Proxmox 8.2.4

State of relevant entities

Example: Add new Motorola e14 phone. Device name 'moto e14'. Sensors include device name, e.g.
sensor.moto_e14_last_notification [enabled in companion app]
sensor.moto_e14_accent_color [disabled in companion app]

If I disable the accent_color sensor then rename the device (to 'M Phone') the disabled sensor id changes but the default name remains as the original. Enabling the sensor keeps the original name. See screenshots.

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

Disabled sensor: Screenshot 2024-10-18 at 11 20 11 After enabling sensor: Screenshot 2024-10-18 at 11 23 20

mrspouse avatar Oct 18 '24 10:10 mrspouse