We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17f87f1 commit 81ecb5cCopy full SHA for 81ecb5c
src/main/java/io/github/hapjava/characteristics/impl/base/BaseCharacteristic.java
@@ -112,8 +112,8 @@ protected CompletableFuture<JsonObjectBuilder> makeBuilder(int instanceId) {
112
.add("iid", instanceId)
113
.add("type", shortType)
114
.add("perms", perms.build())
115
- .add("format", format)
116
- .add("description", description);
+ .add("format", format);
+ if (shortType.length() == type.length()) builder.add("description", description);
117
if (isReadable) setJsonValue(builder, value);
118
return builder;
119
});
0 commit comments