diff --git a/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/api/rest/MediaReceiverManager.java b/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/api/rest/MediaReceiverManager.java index 7b671baaf7a..5141e467433 100644 --- a/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/api/rest/MediaReceiverManager.java +++ b/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/api/rest/MediaReceiverManager.java @@ -54,8 +54,11 @@ public class MediaReceiverManager extends ListableRest void post(@Nullable F payload, String... pathElements) throws FreeboxException { + session.execute(buildUri(pathElements), POST, GenericResponse.class, payload); } protected > F put(Class clazz, F payload, String... pathElements) diff --git a/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/handler/ApiConsumerHandler.java b/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/handler/ApiConsumerHandler.java index 0e7d1ef5268..9fa6a32dd11 100644 --- a/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/handler/ApiConsumerHandler.java +++ b/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/handler/ApiConsumerHandler.java @@ -118,8 +118,7 @@ public abstract class ApiConsumerHandler extends BaseThingHandler implements Api private void startAudioSink(Receiver receiver) { FreeboxOsHandler bridgeHandler = checkBridgeHandler(); // Only video and photo is supported by the API so use VIDEO capability for audio - Boolean isAudioReceiver = receiver.capabilities().get(MediaType.VIDEO); - if (reg == null && bridgeHandler != null && isAudioReceiver != null && isAudioReceiver.booleanValue()) { + if (reg == null && bridgeHandler != null && Boolean.TRUE.equals(receiver.capabilities().get(MediaType.VIDEO))) { ApiConsumerConfiguration config = getConfig().as(ApiConsumerConfiguration.class); String callbackURL = bridgeHandler.getCallbackURL(); if (!config.password.isEmpty() || !receiver.passwordProtected()) {