-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Set sidebar title to location name #23779
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @sethvargo
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
I believe location_name is always initialized by default for everyone as "Home". So this is going to change the sidebar for everyone. |
@karwosts would it be better to:
|
7f20bf6
to
981218f
Compare
Hey folks - any feedback on this? I'm happy to take it in any direction the maintainers would like, but I need some guidance :) |
This sets the sidebar title to the location_name configuration value. If no name is present, it defaults back to "Home Assistant". As someone with multiple HomeAssistant installations, I find this very helpful to quickly differentiate which instance I'm looking at in the UI. I've been using a HACS add-on for this, but having first-class support feels useful.
981218f
to
bef0d75
Compare
Proposed change
Set the sidebar title to the
location_name
configuration value. If no name is present, it defaults back to "Home Assistant". As someone with multiple HA installations, I find this very helpful to quickly differentiate which instance I'm looking at in the UI. I've been using a HACS add-on for this, but having first-class support feels useful.Type of change
Example configuration
N/A - this default configuration will work.
Additional information
An alternative approach I considered was to introduce a new configuration parameter for the sidebar title, but that felt unnecessary since most of the time the value will be the location_name of the HA instance.
Checklist
The code change is tested and works locally.
There is no commented out code in this PR.
Tests have been added to verify that the new code works.
If user exposed functionality or configuration variables are added/changed: