From 26326f71a68127310a8d41b28165ab6934dc4b61 Mon Sep 17 00:00:00 2001 From: John Doe Date: Sat, 27 Feb 2021 16:46:33 +0800 Subject: [PATCH] stateChange event brodcasts complete entity state (#6473) --- lib/state.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/state.js b/lib/state.js index 94cdeb182..5524c3fa3 100644 --- a/lib/state.js +++ b/lib/state.js @@ -88,7 +88,7 @@ class State { this.state[ID] = toState; - this.eventBus.emit('stateChange', {ID, from: fromState, to: toState, reason}); + this.eventBus.emit('stateChange', {ID, from: fromState, to: state, reason}); } removeKey(ID, path) {