Skip to content

Commit

Permalink
fix(event-state): Pass the correct level of the event to msg.data
Browse files Browse the repository at this point in the history
  • Loading branch information
zachowj committed Oct 6, 2020
1 parent 8545f07 commit 4676c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodes/events-state-changed/events-state-changed.js
Expand Up @@ -206,7 +206,7 @@ module.exports = function (RED) {
const msg = {
topic: eventMessage.entity_id,
payload: eventMessage.event.new_state.state,
data: eventMessage,
data: eventMessage.event,
};

eventMessage.event.new_state.timeSinceChangedMs =
Expand Down

0 comments on commit 4676c08

Please sign in to comment.