Skip to content

Commit

Permalink
fix: Fix integration not sending previous state when registering entity
Browse files Browse the repository at this point in the history
Fixes: #973
  • Loading branch information
zachowj committed Jul 6, 2023
1 parent 7c28dc7 commit 3cbe491
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/common/integration/BidirectionalEntityIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ export default class BidirectionalIntegration extends Integration {
}

protected getStateData(state?: State): Partial<EntityMessage> {
const lastPayload = state?.getLastPayload();
if (!state || !lastPayload) {
if (!state) {
return {};
}

Expand Down

0 comments on commit 3cbe491

Please sign in to comment.