[OmniLink] Fix spelling of status (#10161)

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
This commit is contained in:
Ethan Dye 2021-02-15 10:33:11 -07:00 committed by GitHub
parent 71dbf2ed1b
commit 5c3c1db52e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 11 additions and 11 deletions

View File

@ -94,7 +94,7 @@ public abstract class AbstractAreaHandler extends AbstractOmnilinkStatusHandler<
if (command instanceof RefreshType) { if (command instanceof RefreshType) {
retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE, retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE,
ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null staus update!")); ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null status update!"));
return; return;
} }

View File

@ -77,7 +77,7 @@ public abstract class AbstractOmnilinkStatusHandler<T extends Status> extends Ab
if (bridge != null && bridge.getStatus() == ThingStatus.ONLINE) { if (bridge != null && bridge.getStatus() == ThingStatus.ONLINE) {
updateStatus(ThingStatus.ONLINE); updateStatus(ThingStatus.ONLINE);
retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE, retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE,
ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null staus update!")); ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null status update!"));
} }
} }
} }

View File

@ -90,7 +90,7 @@ public class AudioZoneHandler extends AbstractOmnilinkStatusHandler<ExtendedAudi
if (command instanceof RefreshType) { if (command instanceof RefreshType) {
retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE, retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE,
ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null staus update!")); ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null status update!"));
return; return;
} }

View File

@ -101,7 +101,7 @@ public class HumiditySensorHandler extends AbstractOmnilinkStatusHandler<Extende
if (command instanceof RefreshType) { if (command instanceof RefreshType) {
retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE, retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE,
ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null staus update!")); ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null status update!"));
return; return;
} }

View File

@ -85,7 +85,7 @@ public class LockHandler extends AbstractOmnilinkStatusHandler<ExtendedAccessCon
if (command instanceof RefreshType) { if (command instanceof RefreshType) {
retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE, retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE,
ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null staus update!")); ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null status update!"));
return; return;
} }

View File

@ -104,7 +104,7 @@ public class TempSensorHandler extends AbstractOmnilinkStatusHandler<ExtendedAux
if (command instanceof RefreshType) { if (command instanceof RefreshType) {
retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE, retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE,
ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null staus update!")); ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null status update!"));
return; return;
} }

View File

@ -123,7 +123,7 @@ public class ThermostatHandler extends AbstractOmnilinkStatusHandler<ExtendedThe
if (command instanceof RefreshType) { if (command instanceof RefreshType) {
retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE, retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE,
ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null staus update!")); ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null status update!"));
return; return;
} }

View File

@ -98,7 +98,7 @@ public class UnitHandler extends AbstractOmnilinkStatusHandler<ExtendedUnitStatu
if (command instanceof RefreshType) { if (command instanceof RefreshType) {
retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE, retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE,
ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null staus update!")); ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null status update!"));
return; return;
} }

View File

@ -104,7 +104,7 @@ public class ZoneHandler extends AbstractOmnilinkStatusHandler<ExtendedZoneStatu
if (command instanceof RefreshType) { if (command instanceof RefreshType) {
retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE, retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE,
ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null staus update!")); ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null status update!"));
return; return;
} }

View File

@ -55,7 +55,7 @@ public class FlagHandler extends UnitHandler {
if (command instanceof RefreshType) { if (command instanceof RefreshType) {
retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE, retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE,
ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null staus update!")); ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null status update!"));
return; return;
} }

View File

@ -55,7 +55,7 @@ public class UpbRoomHandler extends UnitHandler {
if (command instanceof RefreshType) { if (command instanceof RefreshType) {
retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE, retrieveStatus().ifPresentOrElse(this::updateChannels, () -> updateStatus(ThingStatus.OFFLINE,
ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null staus update!")); ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR, "Received null status update!"));
return; return;
} }