Remove redundant 'loxone' prefix from device names#488
Closed
jmartasek wants to merge 1 commit into
Closed
Conversation
The manufacturer field already identifies these as Loxone devices. The prefix just added noise to device names in the HA UI. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Owner
|
I merged it manually. Hope we will not get a lot of issues. I think I made it on purpose but I can not remember why. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Question / Discussion
I noticed that all Loxone devices in HA get a "loxone" prefix in their display name (e.g., "loxone Kitchen Light" instead of just "Kitchen Light"). This comes from
helpers.py:get_or_create_device():Is there a specific reason for this? The manufacturer field is already set to "Loxone", and HA shows the integration attribution in the UI, so the prefix seems redundant and adds noise to the device list.
This PR removes the prefix. When I tested locally, all active devices got renamed automatically on next HA load — no manual intervention needed, no broken automations (entity_ids are unaffected since they come from the entity's own name, not the device name).
Changes
One-line change: device name uses
device_namedirectly instead off"{DOMAIN} {device_name}".Observations from testing
🤖 Generated with Claude Code