mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[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>
This commit is contained in:
parent
0562b0a231
commit
9b9cdd579b
@ -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);
|
||||
|
@ -355,7 +355,6 @@
|
||||
<option value="home">Home</option>
|
||||
</options>
|
||||
</state>
|
||||
<autoUpdatePolicy>veto</autoUpdatePolicy>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="ip-address" advanced="true">
|
||||
|
Loading…
Reference in New Issue
Block a user