openhab / openhab-js

openHAB JavaScript Library for JavaScript Scripting Automation
https://www.openhab.org/addons/automation/jsscripting/
Eclipse Public License 2.0
38 stars 31 forks source link

[items] Fix error handling for `quantityState` #243

Closed florian-h05 closed 1 year ago

florian-h05 commented 1 year ago

HistoricItem creation failed for Items that were not Quantity-compatible because the catch mechanism for QuantityError had a design issue.

Signed-off-by: Florian Hotze florianh_dev@icloud.com

I have verified that this fix is working.

stefan-hoehn commented 1 year ago

I checked the fix and it is working correctly for me. The error has gone away.

florian-h05 commented 1 year ago

@digitaldan Can you please review and merge? The other PR as well, they are both relatively short.