Skip to content

Conversation

@ildar170975
Copy link
Contributor

Breaking change

Proposed change

Changes were made for:
ha-language-picker:

image

ha-category-picker - only for ha-dialog-automation-save:

image

ha-area-picker - only for:
-- ha-dialog-automation-save
-- entity-registry-settings-editor
-- dialog-device-registry-detail

image

Note that for ha-area-picker a label is only shown when a floor is not displayed (to prevent a clutter).

In ha-combo-box-item, styles were defined for overline slot to mimic (as possible) a floating label in mdc-select.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

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:

@ildar170975 ildar170975 marked this pull request as ready for review November 30, 2025 03:57
Copy link
Member

@timmo001 timmo001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small code style tweaks

@marcinbauer85
Copy link
Member

This is great, thanks @ildar170975 🚀

@ildar170975
Copy link
Contributor Author

Guys, thanks a lot for support

Copy link
Member

@timmo001 timmo001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You will also need to resolve the conflicts in the code, sorry I caused this 🙃


const valueRenderer = this._computeValueRenderer(this.hass.areas);

let showLabel;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let showLabel;
let showLabel = this.showLabel;

Comment on lines +370 to +375
const area_id = this.value;
const area = this.hass.areas[area_id];
const { floor } = getAreaContext(area, this.hass.floors);
showLabel = floor ? false : this.showLabel;
} else {
showLabel = this.showLabel;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const area_id = this.value;
const area = this.hass.areas[area_id];
const { floor } = getAreaContext(area, this.hass.floors);
showLabel = floor ? false : this.showLabel;
} else {
showLabel = this.showLabel;
const area = this.hass.areas[this.value];
if (area) {
const { floor } = getAreaContext(area, this.hass.floors);
showLabel = !floor && this.showLabel;
}

@home-assistant home-assistant bot marked this pull request as draft December 3, 2025 13:46
@home-assistant
Copy link

home-assistant bot commented Dec 3, 2025

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@ildar170975
Copy link
Contributor Author

resolve the conflicts

No problem! I will do it in a few days when be near a PC. SORRY for a delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No label for language field in general settings

3 participants