Fix StateDescription deprecations (#9352)
Related to #1408 Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -469,8 +469,8 @@ public class ApiPageParser extends AbstractSimpleMarkupHandler {
|
||||
}
|
||||
ChannelType ct = ChannelTypeBuilder
|
||||
.state(new ChannelTypeUID(TACmiBindingConstants.BINDING_ID, shortName), shortName, itemType)
|
||||
.withDescription("Auto-created for " + shortName)
|
||||
.withStateDescription(sdb.build().toStateDescription()).build();
|
||||
.withDescription("Auto-created for " + shortName).withStateDescriptionFragment(sdb.build())
|
||||
.build();
|
||||
channelTypeProvider.addChannelType(ct);
|
||||
channelBuilder.withType(ct.getUID());
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user