Skip to content

Commit

Permalink
fix(ignore): fix 172a386
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Dec 16, 2023
1 parent 27e6d1e commit 75e57b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function hasAlreadyProcessedMessage(msg: Fz.Message, model: Definition, I
key = key || msg.device.ieeeAddr;
if (transactionStore[key]?.includes(currentID)) return true;
// Keep last 5, as they might come in different order: https://github.com/Koenkk/zigbee2mqtt/issues/20024
transactionStore[key] = [currentID, ...transactionStore[key]].slice(0, 5);
transactionStore[key] = [currentID, ...(transactionStore[key] ?? [])].slice(0, 5);
return false;
}

Expand Down

0 comments on commit 75e57b8

Please sign in to comment.