-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
Make DecimalType, QuantityType, PercentType accept lowercased exponent notation #3834
Conversation
If this notation is to be supported I would also expect it to be supported by all the others types such as PercentType and QuantityType. There don't seem to be any unit tests for those that indicate it is supported. |
b2d682b
to
e5773ab
Compare
e5773ab
to
b8f7739
Compare
…t notation Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
b8f7739
to
b027633
Compare
bundles/org.openhab.core/src/main/java/org/openhab/core/library/types/QuantityType.java
Outdated
Show resolved
Hide resolved
d574864
to
c4bbd56
Compare
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
c4bbd56
to
ee1743d
Compare
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the fix!
This breaks the KNX tests, see https://github.com/openhab/openhab-addons/actions/runs/6461008060/job/17539806529?pr=15723
|
This is because the regex is too restrictive as I mentioned above. Perhaps we do need to change it to a broader pattern after all. |
Core now accepts lowercased exponent since openhab/openhab-core#3834 Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Core now accepts lowercased exponent since openhab/openhab-core#3834 @mherwege would you mind verifying this please? Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Resolve #3833 and openhab/openhab-addons#13371