From a1cf75456befeccf6d3380423af86366f494ed13 Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Tue, 16 Oct 2018 17:34:46 +0200 Subject: [PATCH] Fix state caching. #485 --- lib/controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/controller.js b/lib/controller.js index 9c828794..b3fa3668 100644 --- a/lib/controller.js +++ b/lib/controller.js @@ -560,7 +560,7 @@ class Controller { // Update state cache with new state. if (cache) { - this.state.set(deviceID, payload); + this.state.set(deviceID, messagePayload); } }