Fix lint warnings (#10157)

This commit is contained in:
Bram Kragten
2021-10-05 18:11:02 +02:00
committed by GitHub
parent 370f2eb9e4
commit c44624282c
19 changed files with 88 additions and 83 deletions

View File

@@ -87,7 +87,7 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
.hass=${this.hass}
.narrow=${this.narrow}
.route=${this.route}
.backCallback=${() => this._backTapped()}
.backCallback=${this._backTapped}
.tabs=${configSections.automation}
>
<ha-button-menu
@@ -578,7 +578,7 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
this._dirty = true;
}
private _backTapped(): void {
private _backTapped = (): void => {
if (this._dirty) {
showConfirmationDialog(this, {
text: this.hass!.localize(
@@ -591,7 +591,7 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
} else {
history.back();
}
}
};
private async _duplicate() {
if (this._dirty) {