]> git.basschouten.com Git - openhab-addons.git/commitdiff
[livisismarthome] Small change in handleRemoval (#14975)
authorlolodomo <lg.hc@free.fr>
Thu, 11 May 2023 19:57:45 +0000 (21:57 +0200)
committerGitHub <noreply@github.com>
Thu, 11 May 2023 19:57:45 +0000 (21:57 +0200)
Follow-up #14946

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
bundles/org.openhab.binding.livisismarthome/src/main/java/org/openhab/binding/livisismarthome/internal/handler/LivisiBridgeHandler.java

index 5de2f8135c5489d621f2514fa4e65d5621833b6e..393755c448c108c2e77069bdfae85f7aaeaba568 100644 (file)
@@ -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();
     }