From b4551c365a27e92161fb529a4a6e4f171792a84a Mon Sep 17 00:00:00 2001 From: lolodomo Date: Thu, 11 May 2023 21:58:45 +0200 Subject: [PATCH] [groupepsa] Small change in handleRemoval (#14977) Follow-up #14943 Signed-off-by: Laurent Garnier --- .../groupepsa/internal/bridge/GroupePSABridgeHandler.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bundles/org.openhab.binding.groupepsa/src/main/java/org/openhab/binding/groupepsa/internal/bridge/GroupePSABridgeHandler.java b/bundles/org.openhab.binding.groupepsa/src/main/java/org/openhab/binding/groupepsa/internal/bridge/GroupePSABridgeHandler.java index 94623f750..5a830e158 100644 --- a/bundles/org.openhab.binding.groupepsa/src/main/java/org/openhab/binding/groupepsa/internal/bridge/GroupePSABridgeHandler.java +++ b/bundles/org.openhab.binding.groupepsa/src/main/java/org/openhab/binding/groupepsa/internal/bridge/GroupePSABridgeHandler.java @@ -143,9 +143,7 @@ public class GroupePSABridgeHandler extends BaseBridgeHandler { @Override public void handleRemoval() { - if (oAuthService != null) { - oAuthFactory.deleteServiceAndAccessToken(thing.getUID().getAsString()); - } + oAuthFactory.deleteServiceAndAccessToken(thing.getUID().getAsString()); super.handleRemoval(); }