Skip to content

Commit

Permalink
fix: assertSecurity logic
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Oct 14, 2024
1 parent 7a2aec7 commit 8882825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cc/src/cc/Security2CC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ export class Security2CC extends CommandClass {
const ownNodeId = gotDeserializationOptions(options)
? options.context.ownNodeId
: this.host.ownNodeId;
if (ownNodeId) {
if (!ownNodeId) {
throw new ZWaveError(
`Secure commands (S2) can only be ${verb} when the controller's node id is known!`,
ZWaveErrorCodes.Driver_NotReady,
Expand Down

0 comments on commit 8882825

Please sign in to comment.