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

[tesla] Correctly handle floating point numbers for estimatedbatteryrange channel #9802

Merged
merged 1 commit into from
Jan 13, 2021

Conversation

kaikreuzer
Copy link
Member

Fixes #9636

Signed-off-by: Kai Kreuzer kai@openhab.org

Signed-off-by: Kai Kreuzer <kai@openhab.org>
@kaikreuzer kaikreuzer added the bug An unexpected problem or unintended behavior of an add-on label Jan 12, 2021
@kaikreuzer kaikreuzer requested a review from kgoderis as a code owner January 12, 2021 20:07
Copy link
Contributor

@cweitkamp cweitkamp left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

The issue and its fix are looking similar to my PRs (#9596 for Chromecast and #9597 for Kodi). I am wondering if we should add a general fix in the SseItemStatesEventBuilder like we have in the ItemUIRegistryImpl which replaces "%d" by "%.0f" in general.

@cweitkamp cweitkamp added this to the 3.1 milestone Jan 13, 2021
@cweitkamp cweitkamp merged commit eea5750 into openhab:main Jan 13, 2021
kaikreuzer added a commit that referenced this pull request Mar 2, 2021
Fixes #9636

Signed-off-by: Kai Kreuzer <kai@openhab.org>
@kaikreuzer kaikreuzer added the patch A PR that has been cherry-picked to a patch release branch label Apr 17, 2021
themillhousegroup pushed a commit to themillhousegroup/openhab2-addons that referenced this pull request May 10, 2021
Fixes openhab#9636

Signed-off-by: Kai Kreuzer <kai@openhab.org>
Signed-off-by: John Marshall <john.marshall.au@gmail.com>
thinkingstone pushed a commit to thinkingstone/openhab-addons that referenced this pull request Nov 7, 2021
Fixes openhab#9636

Signed-off-by: Kai Kreuzer <kai@openhab.org>
@kaikreuzer kaikreuzer deleted the teslabat branch November 13, 2021 18:57
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this pull request May 5, 2022
Fixes openhab#9636

Signed-off-by: Kai Kreuzer <kai@openhab.org>
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.

[tesla] d != java.math.BigDecimal
2 participants