Reverting error messages (#20342)

Signed-off-by: gael@lhopital.org <gael@lhopital.org>
This commit is contained in:
Gaël L'hopital
2026-03-08 23:20:36 +01:00
committed by GitHub
parent 1edae9500b
commit 7a7e627366
@@ -242,8 +242,7 @@ public class ApiBridgeHandler extends BaseBridgeHandler {
private void prepareReconnection(String message, Duration delay, @Nullable String code,
@Nullable String redirectUri) {
if (!ThingStatus.OFFLINE.equals(thing.getStatus())) {
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR,
"Reconnection in %s: %s".formatted(delay, message));
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR, message);
}
connectApi.dispose();
freeConnectJob();