[mqtt.generic] Don't log state description from provider when not found (#14650)
Fixes #9782 Signed-off-by: Cody Cutrer <cody@cutrer.us>
This commit is contained in:
parent
d9ceb63b82
commit
96038c664a
|
@ -68,7 +68,9 @@ public class MqttChannelStateDescriptionProvider implements DynamicStateDescript
|
||||||
public @Nullable StateDescription getStateDescription(Channel channel,
|
public @Nullable StateDescription getStateDescription(Channel channel,
|
||||||
@Nullable StateDescription originalStateDescription, @Nullable Locale locale) {
|
@Nullable StateDescription originalStateDescription, @Nullable Locale locale) {
|
||||||
StateDescription description = descriptions.get(channel.getUID());
|
StateDescription description = descriptions.get(channel.getUID());
|
||||||
|
if (description != null) {
|
||||||
logger.trace("Providing state description for channel {}", channel.getUID());
|
logger.trace("Providing state description for channel {}", channel.getUID());
|
||||||
|
}
|
||||||
return description;
|
return description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue