Here’s what I posted on discord. This will allow you to retain your entity names when upgrading to 2025.5 from any previous version.
-
(only do this if you updated to 2025.5 already) Downgrade to 2025.4
-
Run this in template editor
{%- for e in integration_entities('esphome') %} {{ e }}: friendly_name: "{{ state_attr(e, 'friendly_name') }}" {%- endfor %}
-
Add results from template editor into to customize.yaml
Add the following to configuration.yaml if you have never customized entities via yaml.
homeassistant: customize: !include customize.yaml
Then create a file
customize.yaml
in your config folder and paste the results from the template. -
Restart HA
-
Upgrade HA
-
(optional) Remove customize.yaml and any references to it in configuration.yaml
If you already updated and made changes to other things and you can’t really downgrade, these steps will likely get the names back:
-
Run this in the template editor
{%- for e in integration_entities('esphome') %} {{ e }}: friendly_name: "{{ state_attr(e, 'friendly_name')|regex_replace('^' ~ device_name(e)~' ', '') }}" {%- endfor %}
-
Add results from template editor into to customize.yaml
Add the following to configuration.yaml if you have never customized entities via yaml.
homeassistant: customize: !include customize.yaml
Then create a file
customize.yaml
in your config folder and paste the results from the template. -
Restart HA
-
(optional) Remove customize.yaml and any references to it in configuration.yaml