Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework Entity Names in Discovery Template for HA >2023.8.0 #516

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

krkeegan
Copy link
Collaborator

@krkeegan krkeegan commented Aug 4, 2023

Fixes the breaking change introduced in HomeAssistant 2023.8.0. The changes should not affect any existing user, and only alter the default friendly names generated for entities.

Proposed change

Generally removes the device_name as a prefix in entity name. For devices with only one entity, or for entities that provide the primary purpose of the device, the name is set to "" which causes HomeAssistant to use the device_name as the entity_name. For all other entities, HomeAssistant will automatically prepend the device_name to the entity_name.

Additional information

For a more detailed explanation on the HomeAssitant change see:
HomeAssistant Entity Naming Guidelines,
Change in MQTT Naming, and
Forum Discussion

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • Documentation added/updated

I already have this code running on my instance. I am waiting until later in August to merge into master as I will have more time then to deal with issues if they arise.

Fixes the breaking change introduced in HomeAssistant
2023.8.0.  The changes should not affect any existing user,
and only alter the default friendly names generated for entities.
@krkeegan krkeegan merged commit 475b103 into TD22057:dev Aug 16, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant