From a65574a33642813a6b8f4cb0b0292fc597e12392 Mon Sep 17 00:00:00 2001 From: lolodomo Date: Thu, 11 May 2023 21:57:45 +0200 Subject: [PATCH] [livisismarthome] Small change in handleRemoval (#14975) Follow-up #14946 Signed-off-by: Laurent Garnier --- .../internal/handler/LivisiBridgeHandler.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bundles/org.openhab.binding.livisismarthome/src/main/java/org/openhab/binding/livisismarthome/internal/handler/LivisiBridgeHandler.java b/bundles/org.openhab.binding.livisismarthome/src/main/java/org/openhab/binding/livisismarthome/internal/handler/LivisiBridgeHandler.java index 5de2f8135c5..393755c448c 100644 --- a/bundles/org.openhab.binding.livisismarthome/src/main/java/org/openhab/binding/livisismarthome/internal/handler/LivisiBridgeHandler.java +++ b/bundles/org.openhab.binding.livisismarthome/src/main/java/org/openhab/binding/livisismarthome/internal/handler/LivisiBridgeHandler.java @@ -365,10 +365,7 @@ public class LivisiBridgeHandler extends BaseBridgeHandler @Override public void handleRemoval() { - OAuthClientService oAuthService = this.oAuthService; - if (oAuthService != null) { - oAuthFactory.deleteServiceAndAccessToken(thing.getUID().getAsString()); - } + oAuthFactory.deleteServiceAndAccessToken(thing.getUID().getAsString()); super.handleRemoval(); }