From b7380b5cc04cf3574ac45d7acc479134eed51448 Mon Sep 17 00:00:00 2001 From: Nick Waterton Date: Thu, 7 Nov 2024 08:24:38 -0500 Subject: [PATCH] [samsungtv] Fix for incorrect PowerState (#17715) Signed-off-by: Nick Waterton --- .../internal/handler/SamsungTvHandler.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) mode change 100644 => 100755 bundles/org.openhab.binding.samsungtv/src/main/java/org/openhab/binding/samsungtv/internal/handler/SamsungTvHandler.java diff --git a/bundles/org.openhab.binding.samsungtv/src/main/java/org/openhab/binding/samsungtv/internal/handler/SamsungTvHandler.java b/bundles/org.openhab.binding.samsungtv/src/main/java/org/openhab/binding/samsungtv/internal/handler/SamsungTvHandler.java old mode 100644 new mode 100755 index 0fa24968072e3..7795f4eaab8fd --- a/bundles/org.openhab.binding.samsungtv/src/main/java/org/openhab/binding/samsungtv/internal/handler/SamsungTvHandler.java +++ b/bundles/org.openhab.binding.samsungtv/src/main/java/org/openhab/binding/samsungtv/internal/handler/SamsungTvHandler.java @@ -120,13 +120,13 @@ public class SamsungTvHandler extends BaseThingHandler implements RegistryListen @NonNullByDefault({}) public class TVProperties { class Device { - boolean frameTVSupport; - boolean gamePadSupport; - boolean imeSyncedSupport; - String oS; - String powerState; - boolean tokenAuthSupport; - boolean voiceSupport; + boolean FrameTVSupport; + boolean GamePadSupport; + boolean ImeSyncedSupport; + String OS; + String PowerState; + boolean TokenAuthSupport; + boolean VoiceSupport; String countryCode; String description; String firmwareVersion; @@ -143,22 +143,22 @@ class Device { String isSupport; public boolean getFrameTVSupport() { - return Optional.ofNullable(device).map(a -> a.frameTVSupport).orElse(false); + return Optional.ofNullable(device).map(a -> a.FrameTVSupport).orElse(false); } public boolean getTokenAuthSupport() { - return Optional.ofNullable(device).map(a -> a.tokenAuthSupport).orElse(false); + return Optional.ofNullable(device).map(a -> a.TokenAuthSupport).orElse(false); } public String getPowerState() { if (!getOS().isBlank()) { - return Optional.ofNullable(device).map(a -> a.powerState).orElse("on"); + return Optional.ofNullable(device).map(a -> a.PowerState).orElse("on"); } return "off"; } public String getOS() { - return Optional.ofNullable(device).map(a -> a.oS).orElse(""); + return Optional.ofNullable(device).map(a -> a.OS).orElse(""); } public String getWifiMac() {