Skip to content

Commit

Permalink
fix: use getSensorTypeName to print label of dropped sensor reading (
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone authored Oct 9, 2023
1 parent 47b8b9e commit aa36cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cc/src/cc/MultilevelSensorCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit aa36cb7

Please sign in to comment.