Skip to content

Commit

Permalink
delete app when OH thing is removed or renamed
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Lauterbach <2452988+DrRSatzteil@users.noreply.github.com>
  • Loading branch information
DrRSatzteil committed Jan 4, 2025
1 parent 5383907 commit 1b81311
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,12 @@ public void handleRemoval() {

@Override
public void initialize() {
this.synchronizationRequired = true;
AppConfigOptions config = getConfigAs(AppConfigOptions.class);
if (this.appName != null && !this.appName.equals(config.appname)) {
// The app name has changed. Get rid of the old App first and init a new one
deleteApp();
}
this.appName = config.appname;
this.buttonControlled = config.useButtons;
this.channelPrefix = getThing().getUID() + ":";
Expand Down

0 comments on commit 1b81311

Please sign in to comment.