-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[MQTT] Fix tests after core change #16774
Conversation
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
All test run through fine locally. The change is in the |
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.
LGTM, thank you
I am annoyed by the failing builds... |
Agree. It was working for me in Eclipse. But it looks like Eclipse might not have had the last QuantityType changes. Looking into fixing this. |
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
@lolodomo It should be much better now. The key challenge remains though that the |
* fix mqtt tests Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
* fix mqtt tests Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
* fix mqtt tests Signed-off-by: Mark Herwege <mark.herwege@telenet.be> Signed-off-by: Paul Smedley <paul@smedley.id.au>
* fix mqtt tests Signed-off-by: Mark Herwege <mark.herwege@telenet.be> Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
* fix mqtt tests Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
* fix mqtt tests Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
* fix mqtt tests Signed-off-by: Mark Herwege <mark.herwege@telenet.be> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
See openhab/openhab-core#4169 (comment)
Some MQTT tests with QuantityTypes fail after openhab/openhab-core#4169 because the MQTT binding assumes a format pattern of %s to drop the unit of the Number with Dimension. As this was changed in core, this PR introduces some logic in the MQTT binding to account for this.
All failing tests have run again and pass.
Also, default formatting for Number types was not in line with the documentation. It used %s, while the documentation states it should be %f, dropping all decimals (and the unit). It now is for Number types.