Skip to content

Commit

Permalink
fix: do not return any CC values for the controller (#7002)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Jul 11, 2024
1 parent ea4467f commit 9052aab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/zwave-js/src/lib/node/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ export function getDefinedValueIDsInternal(
node: IZWaveNode,
includeInternal: boolean = false,
): TranslatedValueID[] {
// The controller has no values. Even if some ended up in the cache somehow, do not return any.
if (applHost.isControllerNode(node.id)) return [];

let ret: ValueID[] = [];
const allowControlled: CommandClasses[] = [
CommandClasses["Scene Activation"],
Expand Down

0 comments on commit 9052aab

Please sign in to comment.