From f0772e86a66624ea976182f80119ade9ba759cc7 Mon Sep 17 00:00:00 2001 From: Dominic Griesel Date: Mon, 9 Oct 2023 10:00:08 +0200 Subject: [PATCH] fix: sensorType can be undefined --- 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)); }