-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.5] delState also deletes the object #268
Comments
null
deletes the objectnull
may delete the object
I am not able to reproduce this behavior by setting a state to null with the current master branch and also not with 1.6.0 dev branch. The state in admin objects just shows an empty field for the value or when unit is set it e.g. shows |
It happens in tradfri starting with controller 1.5. |
latest 1.5 github? there was something in earlier 1.5 version that coud interfere like this! |
I need to try again, but I currently have the bug on my production system which is running sth newer - maybe even the dev branch |
Ok then we need to check 1.6.0-dev and maybe recheck 1.5 afterwards |
See #203 (comment) The problem is that I don't set the state to null but rather call I propose reverting the change to |
After thinking I would see it like @AlCalzone ... delState should only clear the value (as it did before). I also see this as a needed functionality e.g. when restructuring states in an adapter and adding a new substructure under the nbame of a former state ... sometime you want to remove the value from such a new channel object or so ... |
null
may delete the objectnull
may delete the object
Of course delState should only delete the state, otherwise there exists delObject. So no unexpected behavior by setting states to null but on deletion of states. ;-) |
null
may delete the objectGerman Doku, named latest repo as beta
See the video in AlCalzone/ioBroker.tradfri#59 for an example.
The tradfri adapter sets the value of group states to
null
if the individual lights of a group have different values for said state.I'm not 100% what happens here but it seems that in v1.5.3, this leads to the objects and/or states being deleted
The text was updated successfully, but these errors were encountered: