Skip to content
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

[energidataservice] Increase robustness of UoM price updates by using currency code rather than symbol #16217

Merged

Conversation

jlaur
Copy link
Contributor

@jlaur jlaur commented Jan 5, 2024

This reduces the work-around provided in #16085 after the root cause has been fixed in openhab/openhab-core#4016.

Updating using currency code rather than currency symbol should be more robust since currency code is guaranteed to be unique. Therefore I'd propose to also cherry-pick this fix into 4.1.x along with openhab/openhab-core#4016 which was already cherry-picked.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
@jlaur jlaur changed the title [energidataservice] Reduce currency unit work-around after core fix [energidataservice] Increase robustness of UoM price updates by using currency code rather than symbol Jan 5, 2024
@jlaur jlaur added the bug An unexpected problem or unintended behavior of an add-on label Jan 5, 2024
@jlaur jlaur requested review from a team and J-N-K January 5, 2024 22:52
Copy link
Member

@kaikreuzer kaikreuzer left a comment

Choose a reason for hiding this comment

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

Thanks!

@kaikreuzer kaikreuzer merged commit 89803c1 into openhab:main Jan 6, 2024
3 checks passed
@kaikreuzer kaikreuzer added this to the 4.2 milestone Jan 6, 2024
kaikreuzer pushed a commit that referenced this pull request Jan 6, 2024
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
@kaikreuzer
Copy link
Member

Cherry-picked to 4.1.x.

@kaikreuzer kaikreuzer added the patch A PR that has been cherry-picked to a patch release branch label Jan 6, 2024
@jlaur jlaur deleted the energidataservice-currency-workaround branch January 6, 2024 19:32
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
joni1993 pushed a commit to joni1993/openhab-addons that referenced this pull request Oct 15, 2024
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on patch A PR that has been cherry-picked to a patch release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants