Closed Olen closed 1 month ago
Hey there @dgomes, mind taking a look at this issue as it has been labeled with an integration (integration
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
integration documentation integration source (message by IssueLinks)
This is related to https://github.com/home-assistant/core/pull/113932
I don't quite understand your unit... is it mol/d⋅m²
or mol⋅m² / d
? in which d
is day
DLI is a pretty complex calculation, but is measured as mol/m²*day
This is very tricky to extract through a string processing method...
mol/(m²d)
should IMHO be the proper unit, and can probably be best worked out
The easiest would be if the sensor just accepted the unit that is set in the class (if one is set) as it used to...
I'm happy to believe that this is a side effect of https://github.com/home-assistant/core/pull/113932 , but I cannot yet see why. As far as I can see the integral sensor derived the unit of measurement from the source during a state change and this (existing) functionality was only extracted in a separate method?
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
should be reopened, still an issue. I did not recognize the notification from the triage workflow :-(
The problem
Until 2024.4 I could have my custom integration set the unit_of_measurement for the Riemann sum integral sensors. After 2024.4 it wil override the unit_of_measurement set in the sensor in the integration and create its own based solely on the source sensor.
This is the root cause of this previous issue: https://github.com/home-assistant/core/issues/114493
The custom plant-integration tries to set the unit_of_measurement for this sensor to "mol/d⋅m²", however that is overwritten by the Riemann integration to be "mol/s⋅m²s" because the source sensors unit_of_measurement is "mol/s⋅m²"
What version of Home Assistant Core has the issue?
2024.4
What was the last working version of Home Assistant Core?
2024.3
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Riemann sum integral
Link to integration documentation on our website
https://www.home-assistant.io/integrations/integration/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response