Fix StateDescription deprecations (#9352)
Related to #1408 Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -142,8 +142,8 @@ public class Property implements AttributeChanged {
|
||||
if (attributes.retained) {
|
||||
return ChannelTypeBuilder.state(channelTypeUID, attributes.name, channelState.getItemType())
|
||||
.withConfigDescriptionURI(URI.create(MqttBindingConstants.CONFIG_HOMIE_CHANNEL))
|
||||
.withStateDescription(channelState.getCache().createStateDescription(!attributes.settable).build()
|
||||
.toStateDescription())
|
||||
.withStateDescriptionFragment(
|
||||
channelState.getCache().createStateDescription(!attributes.settable).build())
|
||||
.build();
|
||||
} else {
|
||||
// Non-retained and settable property -> State channel
|
||||
|
||||
Reference in New Issue
Block a user