From 52b110ae96d4ba4fb8fbd51f8754127890ed0ed3 Mon Sep 17 00:00:00 2001 From: Trinitus01 <58007280+Trinitus01@users.noreply.github.com> Date: Mon, 17 May 2021 22:11:16 +0200 Subject: [PATCH] fixed: iCloud response invalid: null (#10710) changed: appVersion from 2.0 to 3.0 added: missing productType Signed-off-by: Tom Blum --- .../internal/json/request/ICloudAccountDataRequest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.icloud/src/main/java/org/openhab/binding/icloud/internal/json/request/ICloudAccountDataRequest.java b/bundles/org.openhab.binding.icloud/src/main/java/org/openhab/binding/icloud/internal/json/request/ICloudAccountDataRequest.java index 0c4b453ef..10e58c984 100644 --- a/bundles/org.openhab.binding.icloud/src/main/java/org/openhab/binding/icloud/internal/json/request/ICloudAccountDataRequest.java +++ b/bundles/org.openhab.binding.icloud/src/main/java/org/openhab/binding/icloud/internal/json/request/ICloudAccountDataRequest.java @@ -39,7 +39,7 @@ public class ICloudAccountDataRequest { @SuppressWarnings("unused") private boolean fmly = true; @SuppressWarnings("unused") - private String appVersion = "2.0"; + private String appVersion = "3.0"; @SuppressWarnings("unused") private String timezone = "US/Eastern"; @SuppressWarnings("unused") @@ -48,6 +48,8 @@ public class ICloudAccountDataRequest { private String apiVersion = "3.0"; @SuppressWarnings("unused") private String webStats = "0:15"; + @SuppressWarnings("unused") + private String productType = "iPhone6,1"; private ClientContext() { // empty to hide constructor