diff --git a/common/proto/src/main/java/org/thingsboard/server/common/util/ProtoUtils.java b/common/proto/src/main/java/org/thingsboard/server/common/util/ProtoUtils.java index a39052de08..3ee6751370 100644 --- a/common/proto/src/main/java/org/thingsboard/server/common/util/ProtoUtils.java +++ b/common/proto/src/main/java/org/thingsboard/server/common/util/ProtoUtils.java @@ -877,7 +877,7 @@ public class ProtoUtils { .setApiUsageStateIdMSB(getMsb(apiUsageState.getId())) .setApiUsageStateIdLSB(getLsb(apiUsageState.getId())) .setCreatedTime(apiUsageState.getCreatedTime()) - .setEntityType(TransportProtos.EntityTypeProto.forNumber(apiUsageState.getEntityId().getEntityType().ordinal())) + .setEntityType(toProto(apiUsageState.getEntityId().getEntityType())) .setEntityIdMSB(getMsb(apiUsageState.getEntityId())) .setEntityIdLSB(getLsb(apiUsageState.getEntityId())) .setTransportState(apiUsageState.getTransportState().name())