You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling the toString() method on native Java openHAB Items returns a string that represents the Item with it‘s metadata etc. (e.g. F2_Office_Main_Light (Type=SwitchItem, State=OFF, Label=Deckenlampe AZ, Category=light, Tags=[Lightbulb], Groups=[LichterAZ])), but calling toString() on the JS version tries to stringify the object:
florian-h05
changed the title
toString() doesn‘t properly represent Items, Things, etc…toString() doesn‘t properly represent Items, Things
Dec 18, 2022
Calling the
toString()
method on native Java openHAB Items returns a string that represents the Item with it‘s metadata etc. (e.g.F2_Office_Main_Light (Type=SwitchItem, State=OFF, Label=Deckenlampe AZ, Category=light, Tags=[Lightbulb], Groups=[LichterAZ])
), but callingtoString()
on the JS version tries to stringify the object:ThingImpl
doesn‘t provide atoString
method, maybe one should be introduced?FYI have a look at the
toString
method ofGenericItem
.This issue is just a reminder for myself and to track this.
@stefan-hoehn Das hier ist das Problem wieso das Loggen eines Items von Blockly aus auf JS Scripting nicht mehr so funktioniert wie auf Nashorn.
The text was updated successfully, but these errors were encountered: