Skip to content

Commit

Permalink
Move public focus function above privates
Browse files Browse the repository at this point in the history
  • Loading branch information
steverep committed Feb 21, 2022
1 parent a84b29a commit 43c617e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hassio/src/components/supervisor-backup-content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ export class SupervisorBackupContent extends LitElement {
}
}

public override focus() {
this._focusTarget?.focus();
}

private _localize = (string: string) =>
this.supervisor?.localize(`backup.${string}`) ||
this.localize!(`ui.panel.page-onboarding.restore.${string}`);
Expand Down Expand Up @@ -272,10 +276,6 @@ export class SupervisorBackupContent extends LitElement {
`;
}

public override focus() {
this._focusTarget?.focus();
}

private toggleHomeAssistant() {
this.homeAssistant = !this.homeAssistant;
}
Expand Down

0 comments on commit 43c617e

Please sign in to comment.