[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());
|
||||
}
|
||||
super.handleRemoval();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue