Browse Source
Merge pull request #10897 from YevhenBondarenko/fix/device-profile-deserialization
fixed device profile proto deserialization
pull/10910/head
Viacheslav Klimov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
0 deletions
-
common/proto/src/main/java/org/thingsboard/server/common/util/ProtoUtils.java
|
|
|
@ -658,6 +658,8 @@ public class ProtoUtils { |
|
|
|
} |
|
|
|
if (proto.hasDefaultRuleChainIdMSB() && proto.hasDefaultRuleChainIdLSB()) { |
|
|
|
deviceProfile.setDefaultRuleChainId(getEntityId(proto.getDefaultRuleChainIdMSB(), proto.getDefaultRuleChainIdLSB(), RuleChainId::new)); |
|
|
|
} |
|
|
|
if (proto.hasDefaultDashboardIdMSB() && proto.hasDefaultDashboardIdLSB()) { |
|
|
|
deviceProfile.setDefaultDashboardId(getEntityId(proto.getDefaultDashboardIdMSB(), proto.getDefaultDashboardIdLSB(), DashboardId::new)); |
|
|
|
} |
|
|
|
if (proto.hasDefaultQueueName()) { |
|
|
|
|