Skip to content

Commit

Permalink
[mercedesme] Refactor code and fix test (#16897)
Browse files Browse the repository at this point in the history
Also-by: Bernd Weymann <[email protected]>
Signed-off-by: Leo Siepel <[email protected]>
  • Loading branch information
lsiepel authored Jun 24, 2024
1 parent e68f9c9 commit 226806d
Show file tree
Hide file tree
Showing 5 changed files with 342 additions and 319 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public void onAccessTokenResponse(AccessTokenResponse tokenResponse) {
// all failed - start manual authorization
String textKey = Constants.STATUS_TEXT_PREFIX + thing.getThingTypeUID().getId()
+ Constants.STATUS_AUTH_NEEDED;
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.NONE,
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR,
textKey + " [\"" + thing.getProperties().get("callbackUrl") + "\"]");
}
}
Expand Down
Loading

0 comments on commit 226806d

Please sign in to comment.