diff --git a/bundles/org.openhab.binding.androidtv/src/main/java/org/openhab/binding/androidtv/internal/protocol/googletv/GoogleTVConnectionManager.java b/bundles/org.openhab.binding.androidtv/src/main/java/org/openhab/binding/androidtv/internal/protocol/googletv/GoogleTVConnectionManager.java index 47e2a6b8bce..39f5b6f4bd3 100644 --- a/bundles/org.openhab.binding.androidtv/src/main/java/org/openhab/binding/androidtv/internal/protocol/googletv/GoogleTVConnectionManager.java +++ b/bundles/org.openhab.binding.androidtv/src/main/java/org/openhab/binding/androidtv/internal/protocol/googletv/GoogleTVConnectionManager.java @@ -462,11 +462,6 @@ public class GoogleTVConnectionManager { } config.port = (config.port > 0) ? config.port : DEFAULT_PORT; - config.reconnect = (config.reconnect > 0) ? config.reconnect : DEFAULT_RECONNECT_SECONDS; - config.heartbeat = (config.heartbeat > 0) ? config.heartbeat : DEFAULT_HEARTBEAT_SECONDS; - config.delay = (config.delay < 0) ? 0 : config.delay; - config.shim = (config.shim) ? true : false; - config.shimNewKeys = (config.shimNewKeys) ? true : false; config.mode = (!config.mode.equals("")) ? config.mode : DEFAULT_MODE; config.keystoreFileName = (!config.keystoreFileName.equals("")) ? config.keystoreFileName diff --git a/bundles/org.openhab.binding.androidtv/src/main/java/org/openhab/binding/androidtv/internal/protocol/shieldtv/ShieldTVConnectionManager.java b/bundles/org.openhab.binding.androidtv/src/main/java/org/openhab/binding/androidtv/internal/protocol/shieldtv/ShieldTVConnectionManager.java index c52937c9ac6..db0ffc754bf 100644 --- a/bundles/org.openhab.binding.androidtv/src/main/java/org/openhab/binding/androidtv/internal/protocol/shieldtv/ShieldTVConnectionManager.java +++ b/bundles/org.openhab.binding.androidtv/src/main/java/org/openhab/binding/androidtv/internal/protocol/shieldtv/ShieldTVConnectionManager.java @@ -358,11 +358,6 @@ public class ShieldTVConnectionManager { } config.port = (config.port > 0) ? config.port : DEFAULT_PORT; - config.reconnect = (config.reconnect > 0) ? config.reconnect : DEFAULT_RECONNECT_SECONDS; - config.heartbeat = (config.heartbeat > 0) ? config.heartbeat : DEFAULT_HEARTBEAT_SECONDS; - config.delay = (config.delay < 0) ? 0 : config.delay; - config.shim = (config.shim) ? true : false; - config.shimNewKeys = (config.shimNewKeys) ? true : false; config.keystoreFileName = (!config.keystoreFileName.equals("")) ? config.keystoreFileName : folderName + "/shieldtv." + ((config.shim) ? "shim." : "") + handler.getThing().getUID().getId() diff --git a/bundles/org.openhab.binding.androidtv/src/main/resources/OH-INF/i18n/androidtv.properties b/bundles/org.openhab.binding.androidtv/src/main/resources/OH-INF/i18n/androidtv.properties index 91cb9eb79dd..cb0f4d005a8 100644 --- a/bundles/org.openhab.binding.androidtv/src/main/resources/OH-INF/i18n/androidtv.properties +++ b/bundles/org.openhab.binding.androidtv/src/main/resources/OH-INF/i18n/androidtv.properties @@ -28,7 +28,7 @@ thing-type.config.androidtv.googletv.reconnect.label = Reconnect Delay thing-type.config.androidtv.googletv.reconnect.description = Delay between reconnection attempts thing-type.config.androidtv.shieldtv.delay.label = Delay thing-type.config.androidtv.shieldtv.delay.description = Delay between messages -thing-type.config.androidtv.shieldtv.heartbeat.label = Hearbeat Frequency +thing-type.config.androidtv.shieldtv.heartbeat.label = Heartbeat Frequency thing-type.config.androidtv.shieldtv.heartbeat.description = Frequency of heartbeats thing-type.config.androidtv.shieldtv.ipAddress.label = Hostname thing-type.config.androidtv.shieldtv.ipAddress.description = Hostname or IP address of the device diff --git a/bundles/org.openhab.binding.androidtv/src/main/resources/OH-INF/thing/thing-types.xml b/bundles/org.openhab.binding.androidtv/src/main/resources/OH-INF/thing/thing-types.xml index 9101a2504e6..7cd1853be8c 100644 --- a/bundles/org.openhab.binding.androidtv/src/main/resources/OH-INF/thing/thing-types.xml +++ b/bundles/org.openhab.binding.androidtv/src/main/resources/OH-INF/thing/thing-types.xml @@ -56,17 +56,20 @@ Password for the keystore file - + Delay between reconnection attempts + 60 - - + + Frequency of heartbeats + 5 - + Delay between messages + 0 @@ -119,17 +122,20 @@ Password for the keystore file - + Delay between reconnection attempts + 60 - + Frequency of heartbeats + 5 - + Delay between messages + 0