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
One of the bugs I was trying to figure out was why the WizLib library reports an incorrect colour state sometimes, then I realised that if the colour of a bulb is changed by some other software, the WizLib library doesn't know about this and returns what it has cached about the bulb.
This effectively makes the cache return wrong information.
I'm not convinced that you need to cache the bulb state and I'm of the opinion that the caching should be removed in entirety, therefore simplifying the code and removing the need for locks. The bulb itself will then be the single source of truth.
The text was updated successfully, but these errors were encountered:
One of the bugs I was trying to figure out was why the WizLib library reports an incorrect colour state sometimes, then I realised that if the colour of a bulb is changed by some other software, the WizLib library doesn't know about this and returns what it has cached about the bulb.
This effectively makes the cache return wrong information.
I'm not convinced that you need to cache the bulb state and I'm of the opinion that the caching should be removed in entirety, therefore simplifying the code and removing the need for locks. The bulb itself will then be the single source of truth.
The text was updated successfully, but these errors were encountered: