diff --git a/packages/cc/src/cc/AlarmSensorCC.ts b/packages/cc/src/cc/AlarmSensorCC.ts index 9b1494726ba4..54a8b63e0a1f 100644 --- a/packages/cc/src/cc/AlarmSensorCC.ts +++ b/packages/cc/src/cc/AlarmSensorCC.ts @@ -438,7 +438,7 @@ export class AlarmSensorCCGet extends AlarmSensorCC { public static from(_raw: CCRaw, _ctx: CCParsingContext): AlarmSensorCCGet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/BarrierOperatorCC.ts b/packages/cc/src/cc/BarrierOperatorCC.ts index e61fcaabe740..6e7e570d42b7 100644 --- a/packages/cc/src/cc/BarrierOperatorCC.ts +++ b/packages/cc/src/cc/BarrierOperatorCC.ts @@ -560,7 +560,7 @@ export class BarrierOperatorCCSet extends BarrierOperatorCC { _ctx: CCParsingContext, ): BarrierOperatorCCSet { throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -745,7 +745,7 @@ export class BarrierOperatorCCEventSignalingSet extends BarrierOperatorCC { ): BarrierOperatorCCEventSignalingSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -866,7 +866,7 @@ export class BarrierOperatorCCEventSignalingGet extends BarrierOperatorCC { ): BarrierOperatorCCEventSignalingGet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/CentralSceneCC.ts b/packages/cc/src/cc/CentralSceneCC.ts index df16d120bbad..8543402458fa 100644 --- a/packages/cc/src/cc/CentralSceneCC.ts +++ b/packages/cc/src/cc/CentralSceneCC.ts @@ -579,7 +579,7 @@ export class CentralSceneCCConfigurationSet extends CentralSceneCC { _ctx: CCParsingContext, ): CentralSceneCCConfigurationSet { throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/ClimateControlScheduleCC.ts b/packages/cc/src/cc/ClimateControlScheduleCC.ts index 17b9f27ce7f2..02a3bf8b2c87 100644 --- a/packages/cc/src/cc/ClimateControlScheduleCC.ts +++ b/packages/cc/src/cc/ClimateControlScheduleCC.ts @@ -235,7 +235,7 @@ export class ClimateControlScheduleCCSet extends ClimateControlScheduleCC { _ctx: CCParsingContext, ): ClimateControlScheduleCCSet { throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -382,7 +382,7 @@ export class ClimateControlScheduleCCGet extends ClimateControlScheduleCC { _ctx: CCParsingContext, ): ClimateControlScheduleCCGet { throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -539,7 +539,7 @@ export class ClimateControlScheduleCCOverrideSet _ctx: CCParsingContext, ): ClimateControlScheduleCCOverrideSet { throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/ClockCC.ts b/packages/cc/src/cc/ClockCC.ts index 73216530b91b..ada36ace818d 100644 --- a/packages/cc/src/cc/ClockCC.ts +++ b/packages/cc/src/cc/ClockCC.ts @@ -164,7 +164,7 @@ export class ClockCCSet extends ClockCC { public static from(_raw: CCRaw, _ctx: CCParsingContext): ClockCCSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/ConfigurationCC.ts b/packages/cc/src/cc/ConfigurationCC.ts index 039c71fa07e9..c10cc6811adf 100644 --- a/packages/cc/src/cc/ConfigurationCC.ts +++ b/packages/cc/src/cc/ConfigurationCC.ts @@ -2035,7 +2035,7 @@ export class ConfigurationCCBulkSet extends ConfigurationCC { ): ConfigurationCCBulkSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -2306,7 +2306,7 @@ export class ConfigurationCCBulkGet extends ConfigurationCC { ): ConfigurationCCBulkGet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/DoorLockCC.ts b/packages/cc/src/cc/DoorLockCC.ts index d20dbe4c926e..e39fa35a7b8d 100644 --- a/packages/cc/src/cc/DoorLockCC.ts +++ b/packages/cc/src/cc/DoorLockCC.ts @@ -847,7 +847,7 @@ export class DoorLockCCOperationSet extends DoorLockCC { ): DoorLockCCOperationSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -1310,7 +1310,7 @@ export class DoorLockCCConfigurationSet extends DoorLockCC { ): DoorLockCCConfigurationSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/DoorLockLoggingCC.ts b/packages/cc/src/cc/DoorLockLoggingCC.ts index d8ba9ee64628..7c839b95278d 100644 --- a/packages/cc/src/cc/DoorLockLoggingCC.ts +++ b/packages/cc/src/cc/DoorLockLoggingCC.ts @@ -418,7 +418,7 @@ export class DoorLockLoggingCCRecordGet extends DoorLockLoggingCC { _ctx: CCParsingContext, ): DoorLockLoggingCCRecordGet { throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/EntryControlCC.ts b/packages/cc/src/cc/EntryControlCC.ts index e6d932e3e96b..b7d70a3a7091 100644 --- a/packages/cc/src/cc/EntryControlCC.ts +++ b/packages/cc/src/cc/EntryControlCC.ts @@ -774,7 +774,7 @@ export class EntryControlCCConfigurationSet extends EntryControlCC { ): EntryControlCCConfigurationSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/FirmwareUpdateMetaDataCC.ts b/packages/cc/src/cc/FirmwareUpdateMetaDataCC.ts index 282d27171710..9fb74611ccba 100644 --- a/packages/cc/src/cc/FirmwareUpdateMetaDataCC.ts +++ b/packages/cc/src/cc/FirmwareUpdateMetaDataCC.ts @@ -621,7 +621,7 @@ export class FirmwareUpdateMetaDataCCRequestGet ): FirmwareUpdateMetaDataCCRequestGet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -761,7 +761,7 @@ export class FirmwareUpdateMetaDataCCReport extends FirmwareUpdateMetaDataCC { ): FirmwareUpdateMetaDataCCReport { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -986,7 +986,7 @@ export class FirmwareUpdateMetaDataCCActivationSet ): FirmwareUpdateMetaDataCCActivationSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -1108,7 +1108,7 @@ export class FirmwareUpdateMetaDataCCPrepareGet ): FirmwareUpdateMetaDataCCPrepareGet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/HumidityControlModeCC.ts b/packages/cc/src/cc/HumidityControlModeCC.ts index 14618002c504..6b1f5db37314 100644 --- a/packages/cc/src/cc/HumidityControlModeCC.ts +++ b/packages/cc/src/cc/HumidityControlModeCC.ts @@ -298,7 +298,7 @@ export class HumidityControlModeCCSet extends HumidityControlModeCC { ): HumidityControlModeCCSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/HumidityControlSetpointCC.ts b/packages/cc/src/cc/HumidityControlSetpointCC.ts index 0c4b9ef57980..0e1aaf1fdde3 100644 --- a/packages/cc/src/cc/HumidityControlSetpointCC.ts +++ b/packages/cc/src/cc/HumidityControlSetpointCC.ts @@ -538,7 +538,7 @@ export class HumidityControlSetpointCCSet extends HumidityControlSetpointCC { ): HumidityControlSetpointCCSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -705,7 +705,7 @@ export class HumidityControlSetpointCCGet extends HumidityControlSetpointCC { ): HumidityControlSetpointCCGet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -875,7 +875,7 @@ export class HumidityControlSetpointCCScaleSupportedGet ): HumidityControlSetpointCCScaleSupportedGet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -1022,7 +1022,7 @@ export class HumidityControlSetpointCCCapabilitiesGet ): HumidityControlSetpointCCCapabilitiesGet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/IrrigationCC.ts b/packages/cc/src/cc/IrrigationCC.ts index 5543583e7a4c..27d060b5d16d 100644 --- a/packages/cc/src/cc/IrrigationCC.ts +++ b/packages/cc/src/cc/IrrigationCC.ts @@ -1650,7 +1650,7 @@ export class IrrigationCCSystemConfigSet extends IrrigationCC { ): IrrigationCCSystemConfigSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -2036,7 +2036,7 @@ export class IrrigationCCValveInfoGet extends IrrigationCC { ): IrrigationCCValveInfoGet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -2100,7 +2100,7 @@ export class IrrigationCCValveConfigSet extends IrrigationCC { ): IrrigationCCValveConfigSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -2359,7 +2359,7 @@ export class IrrigationCCValveConfigGet extends IrrigationCC { ): IrrigationCCValveConfigGet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -2411,7 +2411,7 @@ export class IrrigationCCValveRun extends IrrigationCC { ): IrrigationCCValveRun { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -2473,7 +2473,7 @@ export class IrrigationCCValveTableSet extends IrrigationCC { ): IrrigationCCValveTableSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -2610,7 +2610,7 @@ export class IrrigationCCValveTableGet extends IrrigationCC { ): IrrigationCCValveTableGet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -2663,7 +2663,7 @@ export class IrrigationCCValveTableRun extends IrrigationCC { ): IrrigationCCValveTableRun { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -2716,7 +2716,7 @@ export class IrrigationCCSystemShutoff extends IrrigationCC { ): IrrigationCCSystemShutoff { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/LanguageCC.ts b/packages/cc/src/cc/LanguageCC.ts index 10bc366cd897..f249af5767e7 100644 --- a/packages/cc/src/cc/LanguageCC.ts +++ b/packages/cc/src/cc/LanguageCC.ts @@ -183,7 +183,7 @@ export class LanguageCCSet extends LanguageCC { public static from(_raw: CCRaw, _ctx: CCParsingContext): LanguageCCSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/LockCC.ts b/packages/cc/src/cc/LockCC.ts index 08e96741adc3..98fd94d2dd33 100644 --- a/packages/cc/src/cc/LockCC.ts +++ b/packages/cc/src/cc/LockCC.ts @@ -199,7 +199,7 @@ export class LockCCSet extends LockCC { public static from(_raw: CCRaw, _ctx: CCParsingContext): LockCCSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/ManufacturerSpecificCC.ts b/packages/cc/src/cc/ManufacturerSpecificCC.ts index ac8f51fc6c32..a84795d789d5 100644 --- a/packages/cc/src/cc/ManufacturerSpecificCC.ts +++ b/packages/cc/src/cc/ManufacturerSpecificCC.ts @@ -377,7 +377,7 @@ export class ManufacturerSpecificCCDeviceSpecificGet _ctx: CCParsingContext, ): ManufacturerSpecificCCDeviceSpecificGet { throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/MultiChannelCC.ts b/packages/cc/src/cc/MultiChannelCC.ts index a33082797b0d..331d7db88f80 100644 --- a/packages/cc/src/cc/MultiChannelCC.ts +++ b/packages/cc/src/cc/MultiChannelCC.ts @@ -1296,7 +1296,7 @@ export class MultiChannelCCAggregatedMembersGet extends MultiChannelCC { ): MultiChannelCCAggregatedMembersGet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -1553,7 +1553,7 @@ export class MultiChannelCCV1Get extends MultiChannelCC { ): MultiChannelCCV1Get { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/NodeNamingCC.ts b/packages/cc/src/cc/NodeNamingCC.ts index fa265d742faf..0ee09bc68ee4 100644 --- a/packages/cc/src/cc/NodeNamingCC.ts +++ b/packages/cc/src/cc/NodeNamingCC.ts @@ -287,7 +287,7 @@ export class NodeNamingAndLocationCCNameSet extends NodeNamingAndLocationCC { ): NodeNamingAndLocationCCNameSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -398,7 +398,7 @@ export class NodeNamingAndLocationCCLocationSet ): NodeNamingAndLocationCCLocationSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/ProtectionCC.ts b/packages/cc/src/cc/ProtectionCC.ts index dd3a6b8cfbf3..d935417e5425 100644 --- a/packages/cc/src/cc/ProtectionCC.ts +++ b/packages/cc/src/cc/ProtectionCC.ts @@ -518,7 +518,7 @@ export class ProtectionCCSet extends ProtectionCC { public static from(_raw: CCRaw, _ctx: CCParsingContext): ProtectionCCSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -797,7 +797,7 @@ export class ProtectionCCExclusiveControlSet extends ProtectionCC { ): ProtectionCCExclusiveControlSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -889,7 +889,7 @@ export class ProtectionCCTimeoutSet extends ProtectionCC { ): ProtectionCCTimeoutSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/SceneActuatorConfigurationCC.ts b/packages/cc/src/cc/SceneActuatorConfigurationCC.ts index 0188870dbec2..80e2dbff7475 100644 --- a/packages/cc/src/cc/SceneActuatorConfigurationCC.ts +++ b/packages/cc/src/cc/SceneActuatorConfigurationCC.ts @@ -377,7 +377,7 @@ export class SceneActuatorConfigurationCCSet ): SceneActuatorConfigurationCCSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -545,7 +545,7 @@ export class SceneActuatorConfigurationCCGet ): SceneActuatorConfigurationCCGet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/SceneControllerConfigurationCC.ts b/packages/cc/src/cc/SceneControllerConfigurationCC.ts index 1c2623a02ffb..7e500881e206 100644 --- a/packages/cc/src/cc/SceneControllerConfigurationCC.ts +++ b/packages/cc/src/cc/SceneControllerConfigurationCC.ts @@ -510,7 +510,7 @@ export class SceneControllerConfigurationCCSet ): SceneControllerConfigurationCCSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -655,7 +655,7 @@ export class SceneControllerConfigurationCCGet ): SceneControllerConfigurationCCGet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/ThermostatFanModeCC.ts b/packages/cc/src/cc/ThermostatFanModeCC.ts index c2e9e307760b..d23c88dea711 100644 --- a/packages/cc/src/cc/ThermostatFanModeCC.ts +++ b/packages/cc/src/cc/ThermostatFanModeCC.ts @@ -357,7 +357,7 @@ export class ThermostatFanModeCCSet extends ThermostatFanModeCC { ): ThermostatFanModeCCSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/TimeCC.ts b/packages/cc/src/cc/TimeCC.ts index 34da2eef957a..d0e0b0eba556 100644 --- a/packages/cc/src/cc/TimeCC.ts +++ b/packages/cc/src/cc/TimeCC.ts @@ -396,7 +396,7 @@ export class TimeCCTimeOffsetSet extends TimeCC { ): TimeCCTimeOffsetSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/UserCodeCC.ts b/packages/cc/src/cc/UserCodeCC.ts index 8ee665a9ee0b..0e70a3b65001 100644 --- a/packages/cc/src/cc/UserCodeCC.ts +++ b/packages/cc/src/cc/UserCodeCC.ts @@ -2024,7 +2024,7 @@ export class UserCodeCCExtendedUserCodeSet extends UserCodeCC { ): UserCodeCCExtendedUserCodeSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); @@ -2176,7 +2176,7 @@ export class UserCodeCCExtendedUserCodeGet extends UserCodeCC { ): UserCodeCCExtendedUserCodeGet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); diff --git a/packages/cc/src/cc/manufacturerProprietary/FibaroCC.ts b/packages/cc/src/cc/manufacturerProprietary/FibaroCC.ts index 87d27ea9403f..b7d2a5283568 100644 --- a/packages/cc/src/cc/manufacturerProprietary/FibaroCC.ts +++ b/packages/cc/src/cc/manufacturerProprietary/FibaroCC.ts @@ -390,7 +390,7 @@ export class FibaroVenetianBlindCCSet extends FibaroVenetianBlindCC { ): FibaroVenetianBlindCCSet { // TODO: Deserialize payload throw new ZWaveError( - `${this.constructor.name}: deserialization not implemented`, + `${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented, ); } diff --git a/packages/eslint-plugin/src/rules/consistent-cc-classes.ts b/packages/eslint-plugin/src/rules/consistent-cc-classes.ts index 95ebbe95d3bc..b62927689f91 100644 --- a/packages/eslint-plugin/src/rules/consistent-cc-classes.ts +++ b/packages/eslint-plugin/src/rules/consistent-cc-classes.ts @@ -232,7 +232,7 @@ export const consistentCCClasses = ESLintUtils.RuleCreator.withoutDocs({ ): ${node.id!.name} { // TODO: Deserialize payload throw new ZWaveError( - \`\${this.constructor.name}: deserialization not implemented\`, + \`\${this.name}: deserialization not implemented\`, ZWaveErrorCodes.Deserialization_NotImplemented, ); }`,