Skip to content

Commit

Permalink
fix(ignore): Fix crash when retrieving state (#23679)
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk authored Aug 20, 2024
1 parent 837cbe5 commit 2298017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/extension/availability.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export default class Availability extends Extension {
continue;
}

const converter = device.definition.toZigbee.find((c) => c.key.find((k) => item.keys.includes(k)));
const converter = device.definition.toZigbee.find((c) => !c.key || c.key.find((k) => item.keys.includes(k)));
const options: KeyValue = device.options;
const state = this.state.get(device);
const meta: zhc.Tz.Meta = {
Expand Down

0 comments on commit 2298017

Please sign in to comment.