Right now every time we receive an MQTT update we completely swap the state, possibly leading to incomplete information on a State() call.
We should likely switch to a merge based update system, but this could introduce the problem of stale data.
Worth a look, I will do some testing myself when I am able
Right now every time we receive an MQTT update we completely swap the state, possibly leading to incomplete information on a State() call.
We should likely switch to a merge based update system, but this could introduce the problem of stale data.
Worth a look, I will do some testing myself when I am able