Skip to content

Commit 226806d

Browse files
authored
[mercedesme] Refactor code and fix test (openhab#16897)
Also-by: Bernd Weymann <[email protected]> Signed-off-by: Leo Siepel <[email protected]>
1 parent e68f9c9 commit 226806d

File tree

5 files changed

+342
-319
lines changed

5 files changed

+342
-319
lines changed

bundles/org.openhab.binding.mercedesme/src/main/java/org/openhab/binding/mercedesme/internal/handler/AccountHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public void onAccessTokenResponse(AccessTokenResponse tokenResponse) {
227227
// all failed - start manual authorization
228228
String textKey = Constants.STATUS_TEXT_PREFIX + thing.getThingTypeUID().getId()
229229
+ Constants.STATUS_AUTH_NEEDED;
230-
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.NONE,
230+
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR,
231231
textKey + " [\"" + thing.getProperties().get("callbackUrl") + "\"]");
232232
}
233233
}

0 commit comments

Comments
 (0)