diff --git a/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/handler/PlayerHandler.java b/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/handler/PlayerHandler.java index fc89e510a56..5504ccd97cd 100644 --- a/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/handler/PlayerHandler.java +++ b/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/handler/PlayerHandler.java @@ -88,14 +88,14 @@ public class PlayerHandler extends HostHandler { logger.warn("Player IP is unknown"); } else if (VALID_REMOTE_KEYS.contains(aKey)) { String remoteCode = (String) getConfig().get(PlayerConfiguration.REMOTE_CODE); - if (remoteCode != null) { + if (remoteCode != null && !remoteCode.isBlank()) { try { getManager(PlayerManager.class).sendKey(ip.toCanonicalString(), remoteCode, aKey, longPress, count); } catch (FreeboxException e) { logger.warn("Error sending key: {}", e.getMessage()); } } else { - logger.warn("A remote code must be configured in the on the player thing."); + logger.warn("A remote code must be configured on the player thing."); } } else { logger.warn("Key '{}' is not a valid key expression", key); diff --git a/bundles/org.openhab.binding.freeboxos/src/main/resources/OH-INF/thing/channel-types.xml b/bundles/org.openhab.binding.freeboxos/src/main/resources/OH-INF/thing/channel-types.xml index bf1c7441569..a6003622147 100644 --- a/bundles/org.openhab.binding.freeboxos/src/main/resources/OH-INF/thing/channel-types.xml +++ b/bundles/org.openhab.binding.freeboxos/src/main/resources/OH-INF/thing/channel-types.xml @@ -355,7 +355,6 @@ - veto