ioBroker.javascript
ioBroker.javascript copied to clipboard
Cannot set null to states without getting warnings
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
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.