[freeboxos] Remove veto policy on key-code channel (#17224)

This allows to have as status the last command sent.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
lolodomo 2024-08-11 09:32:21 +02:00 committed by Ciprian Pascu
parent 7bf09012b5
commit 1fa8baf43c
2 changed files with 2 additions and 3 deletions

View File

@ -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);

View File

@ -355,7 +355,6 @@
<option value="home">Home</option>
</options>
</state>
<autoUpdatePolicy>veto</autoUpdatePolicy>
</channel-type>
<channel-type id="ip-address" advanced="true">