[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:
Cody Cutrer 2023-03-22 09:53:50 -06:00 committed by GitHub
parent d9ceb63b82
commit 96038c664a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -68,7 +68,9 @@ public class MqttChannelStateDescriptionProvider implements DynamicStateDescript
public @Nullable StateDescription getStateDescription(Channel channel,
@Nullable StateDescription originalStateDescription, @Nullable Locale locale) {
StateDescription description = descriptions.get(channel.getUID());
if (description != null) {
logger.trace("Providing state description for channel {}", channel.getUID());
}
return description;
}