]> git.basschouten.com Git - openhab-addons.git/commitdiff
Fix ONLINE state when device response status is 203 (#12587)
authorKristof Rado <36210568+radokristof@users.noreply.github.com>
Mon, 25 Apr 2022 17:41:00 +0000 (19:41 +0200)
committerGitHub <noreply@github.com>
Mon, 25 Apr 2022 17:41:00 +0000 (19:41 +0200)
Signed-off-by: Kristof Rado <rado.krisi@gmail.com>
bundles/org.openhab.binding.icloud/src/main/java/org/openhab/binding/icloud/internal/handler/ICloudDeviceHandler.java

index 2476d9540dbfe0d44b0e0044615122ab75dd8c6b..49ab4f0fec60f31a3af38397bd502976718febb2 100644 (file)
@@ -67,7 +67,7 @@ public class ICloudDeviceHandler extends BaseThingHandler implements ICloudDevic
     public void deviceInformationUpdate(List<ICloudDeviceInformation> deviceInformationList) {
         ICloudDeviceInformation deviceInformationRecord = getDeviceInformationRecord(deviceInformationList);
         if (deviceInformationRecord != null) {
-            if (deviceInformationRecord.getDeviceStatus() == 200) {
+            if (deviceInformationRecord.getDeviceStatus() == 200 || deviceInformationRecord.getDeviceStatus() == 203) {
                 updateStatus(ONLINE);
             } else {
                 updateStatus(OFFLINE, COMMUNICATION_ERROR, "Reported offline by iCloud webservice");