From cc6ecb43726e66705eb969d0492ff83db58902bd Mon Sep 17 00:00:00 2001 From: lolodomo Date: Thu, 11 May 2023 21:58:13 +0200 Subject: [PATCH] [hydrawise] Small change in handleRemoval (#14976) Follow-up #14945 Signed-off-by: Laurent Garnier --- .../hydrawise/internal/handler/HydrawiseAccountHandler.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bundles/org.openhab.binding.hydrawise/src/main/java/org/openhab/binding/hydrawise/internal/handler/HydrawiseAccountHandler.java b/bundles/org.openhab.binding.hydrawise/src/main/java/org/openhab/binding/hydrawise/internal/handler/HydrawiseAccountHandler.java index 71dd54767..44f8f3853 100644 --- a/bundles/org.openhab.binding.hydrawise/src/main/java/org/openhab/binding/hydrawise/internal/handler/HydrawiseAccountHandler.java +++ b/bundles/org.openhab.binding.hydrawise/src/main/java/org/openhab/binding/hydrawise/internal/handler/HydrawiseAccountHandler.java @@ -111,10 +111,7 @@ public class HydrawiseAccountHandler extends BaseBridgeHandler implements Access @Override public void handleRemoval() { - OAuthClientService oAuthService = this.oAuthService; - if (oAuthService != null) { - oAuthFactory.deleteServiceAndAccessToken(getThing().toString()); - } + oAuthFactory.deleteServiceAndAccessToken(getThing().toString()); super.handleRemoval(); }