mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[hydrawise] Small change in handleRemoval (#14976)
Follow-up #14945 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
parent
a65574a336
commit
cc6ecb4372
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user