home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.8k stars 30.5k forks source link

Helper group sensor no longer has a state class and unit has changed #128453

Open broyuken opened 1 week ago

broyuken commented 1 week ago

The problem

Hi all, since upgrading to 2024.10 I’m seeing a couple of repair issues pop up and I’m not sure how to solve them. I have 3 sensor group helpers

sensor.group_basement_temperature_sensors sensor.group_downstairs_temperature_sensors sensor.group_upstairs_temperature_sensors These are all set up as Arithmetic mean and have a unit of Measurement of °F

These work fine.

I then put those 3 groups into a group called

sensor.inside_temperature_sensors

And when I originally set it up, I had it also set to arithmetic mean with a unit of Measurement of °F. However after some amount of time, the unit of measurement gets stripped and I get the following repair issues.

image and image

Is this a bug where the nested groups don’t have a unit of measurement set correctly?

What version of Home Assistant Core has the issue?

core-2024.10.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

helper group

Link to integration documentation on our website

https://www.home-assistant.io/integrations/group/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

When I first create the group, it has a state class and shows up as F correctly, after some amount of time that unit of measurement is stripped away and I get the repair error above.

home-assistant[bot] commented 1 week ago

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (group) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `group` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign group` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


group documentation group source (message by IssueLinks)

broyuken commented 4 days ago

Can anyone take a look at this please?