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

Don't name entity to avoid duplicate name #1354

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

jamesonuk
Copy link
Contributor

@jamesonuk jamesonuk commented May 13, 2024

Sorry managed to delete original repo I submitted PR from so this is identical to #1350

Motivation:

Avoid duplicate entity name
Not sue if this is the best way to do it but it resolves #1332

Changes:

I have added _attr_name = None as per https://developers.home-assistant.io/docs/core/entity/#has_entity_name-true-mandatory-for-new-integrations and then just replace the inbuilt name property with a custom device_name property

Related issue (check one):

Checklist (check one):

  • I did not change any code (e.g. documentation changes)
  • The code change is tested and works locally.

Test-Hardware list (for code changes)

HA Version: 2024.5.1
Zigbee2MQTT Version: 1.37.1
TRV Hardware: Sonoff TRVZB

New device mappings

  • I avoided any changes to other device mappings
  • There are no changes in climate.py

@KartoffelToby KartoffelToby merged commit b027743 into KartoffelToby:master Jun 7, 2024
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.

Entity has double friendly name
2 participants