mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Fix ONLINE state when device response status is 203 (#12587)
Signed-off-by: Kristof Rado <rado.krisi@gmail.com>
This commit is contained in:
parent
e659ceeade
commit
cda38435e9
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user