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 `ItemHistory.latestState` doesn’t return string #249

Closed florian-h05 closed 1 year ago

florian-h05 commented 1 year ago

rules.SwitchableJSRule failed due to ItemHistory.latestState returning a HistoricItem instead of the expected string state.

Regression from #228.