Don't mutate stateCache. #82

This commit is contained in:
Koenkk 2018-06-02 19:11:49 +02:00
parent 898081fcb4
commit ab64d079aa

View File

@ -389,7 +389,7 @@ class Controller {
if (cacheState) {
// Add cached state to payload
if (this.stateCache[deviceID]) {
payload = objectAssignDeep(this.stateCache[deviceID], payload);
payload = objectAssignDeep.noMutate(this.stateCache[deviceID], payload);
}
// Update state cache with new state.