[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
|
@Override
|
||||||
public void handleRemoval() {
|
public void handleRemoval() {
|
||||||
OAuthClientService oAuthService = this.oAuthService;
|
oAuthFactory.deleteServiceAndAccessToken(getThing().toString());
|
||||||
if (oAuthService != null) {
|
|
||||||
oAuthFactory.deleteServiceAndAccessToken(getThing().toString());
|
|
||||||
}
|
|
||||||
super.handleRemoval();
|
super.handleRemoval();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue