Delete oauth service and token when thing removed (#14980)

Signed-off-by: Mark Hilbush <mark@hilbush.com>
This commit is contained in:
Mark Hilbush 2023-05-11 08:41:22 -04:00 committed by GitHub
parent 1fafec5d11
commit e6d84ab488
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -125,6 +125,12 @@ public class EcobeeAccountBridgeHandler extends BaseBridgeHandler {
logger.debug("AccountBridge: Disposing");
}
@Override
public void handleRemoval() {
oAuthFactory.deleteServiceAndAccessToken(thing.getUID().getAsString());
super.handleRemoval();
}
@Override
public void handleCommand(ChannelUID channelUID, Command command) {
}