From aa36cb70dfd5b4940ac064ab3656412fc04465d9 Mon Sep 17 00:00:00 2001 From: AlCalzone Date: Mon, 9 Oct 2023 10:08:39 +0200 Subject: [PATCH] fix: use `getSensorTypeName` to print label of dropped sensor reading (#6379) --- packages/cc/src/cc/MultilevelSensorCC.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cc/src/cc/MultilevelSensorCC.ts b/packages/cc/src/cc/MultilevelSensorCC.ts index b40d1c23e366..7bc3cc8f4c6e 100644 --- a/packages/cc/src/cc/MultilevelSensorCC.ts +++ b/packages/cc/src/cc/MultilevelSensorCC.ts @@ -670,7 +670,7 @@ export class MultilevelSensorCCReport extends MultilevelSensorCC { if (supportedSensorTypes?.length) { validatePayload.withReason( `Unsupported sensor type ${ - sensorType!.label + applHost.configManager.getSensorTypeName(this.type) } or corrupted data`, )(supportedSensorTypes.includes(this.type)); }