Skip to content

Commit

Permalink
refactor: one more
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Oct 16, 2024
1 parent f467c5a commit 2c5f84d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cc/src/cc/MultiChannelCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const MultiChannelCCValues = Object.freeze({
* This function gives an estimate if this is the case (i.e. all endpoints have a different device class)
*/
function areEndpointsUnnecessary(
applHost: ZWaveApplicationHost,
ctx: GetValueDB,
nodeId: number,
endpointIndizes: number[],
): boolean {
Expand All @@ -146,7 +146,7 @@ function areEndpointsUnnecessary(
for (const endpoint of endpointIndizes) {
const devClassValueId = MultiChannelCCValues.endpointDeviceClass
.endpoint(endpoint);
const deviceClass = applHost.getValueDB(nodeId).getValue<{
const deviceClass = ctx.getValueDB(nodeId).getValue<{
generic: number;
specific: number;
}>(devClassValueId);
Expand Down

0 comments on commit 2c5f84d

Please sign in to comment.