Fix ONLINE state when device response status is 203 (#12587)

Signed-off-by: Kristof Rado <rado.krisi@gmail.com>
This commit is contained in:
Kristof Rado 2022-04-25 19:41:00 +02:00 committed by GitHub
parent e659ceeade
commit cda38435e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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");