Skip to content

Commit

Permalink
Simplified multiEndpoint check
Browse files Browse the repository at this point in the history
  • Loading branch information
rccoleman authored Jan 27, 2025
1 parent 6bb600b commit 289429e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/extension/groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,7 @@ export default class Groups extends Extension {
const stateKey =
endpointNames &&
endpointNames.length >= member.ID &&
device.definition &&
device.definition.meta &&
device.definition.meta.multiEndpoint &&
device.definition?.meta?.multiEndpoint &&
(!device.definition.meta.multiEndpointSkip || !device.definition.meta.multiEndpointSkip.includes('state'))
? `state_${endpointNames[member.ID - 1]}`
: 'state';
Expand Down

0 comments on commit 289429e

Please sign in to comment.