Skip to content

Commit

Permalink
fix: re-introduce mandatory CCs to DeviceClass as deprecated (#6796)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone authored Apr 26, 2024
1 parent ec2d4d6 commit bf8cfa8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/zwave-js/src/lib/node/DeviceClass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type {
GenericDeviceClass,
SpecificDeviceClass,
} from "@zwave-js/config";
import { type CommandClasses } from "@zwave-js/core";
import type { JSONObject } from "@zwave-js/shared";

export class DeviceClass {
Expand All @@ -25,6 +26,16 @@ export class DeviceClass {
public readonly generic: GenericDeviceClass;
public readonly specific: SpecificDeviceClass;

/** @deprecated This property is no longer in use and contains no information. */
public get mandatorySupportedCCs(): readonly CommandClasses[] {
return [];
}

/** @deprecated This property is no longer in use and contains no information. */
public get mandatoryControlledCCs(): readonly CommandClasses[] {
return [];
}

public toJSON(): JSONObject {
return {
basic: this.basic.label,
Expand Down

0 comments on commit bf8cfa8

Please sign in to comment.