ioBroker.javascript icon indicating copy to clipboard operation
ioBroker.javascript copied to clipboard

Cannot set null to states without getting warnings

Open foxriver76 opened this issue 1 year ago • 1 comments

setState('0_userdata.0.example_state', { val: null });
setState('0_userdata.0.example_state', null);

both end up in

You are assigning a object to the state "0_userdata.0.example_state" which expects a boolean. Please fix your code to use a boolean or change the state type to object. This warning might become an error in future versions.

v5.7.0

foxriver76 avatar Aug 15 '22 19:08 foxriver76

btw nitpick

You are assigning an object to the state "0_userdata.0.example_state" which expects a boolean. Please fix your code to use a boolean or change the state type to object. This warning might become an error in future versions.

foxriver76 avatar Aug 18 '22 16:08 foxriver76