diff --git a/hassio/src/system/hassio-system-metrics.ts b/hassio/src/system/hassio-system-metrics.ts index b3cafdbd27..90a996874a 100644 --- a/hassio/src/system/hassio-system-metrics.ts +++ b/hassio/src/system/hassio-system-metrics.ts @@ -21,11 +21,11 @@ import { fetchHassioStats, HassioStats } from "../../../src/data/hassio/common"; import { HassioHostInfo } from "../../../src/data/hassio/host"; import { haStyle } from "../../../src/resources/styles"; import { HomeAssistant } from "../../../src/types"; +import { bytesToString } from "../../../src/util/bytes-to-string"; import { getValueInPercentage, roundWithOneDecimal, } from "../../../src/util/calculate"; -import { bytesToString } from "../../../src/util/bytes-to-string"; import { hassioStyle } from "../resources/hassio-style"; @customElement("hassio-system-metrics") @@ -65,9 +65,7 @@ class HassioSystemMetrics extends LitElement { { description: "Used Space", value: this._getUsedSpace(this.hostInfo), - tooltip: `${ - this.hostInfo.disk_used - } GB/${this.hostInfo.disk_total} GB`, + tooltip: `${this.hostInfo.disk_used} GB/${this.hostInfo.disk_total} GB`, }, ]; diff --git a/src/components/entity/ha-chart-base.js b/src/components/entity/ha-chart-base.js index 8ddcd75f13..e02470bd08 100644 --- a/src/components/entity/ha-chart-base.js +++ b/src/components/entity/ha-chart-base.js @@ -278,7 +278,7 @@ class HaChartBase extends mixinBehaviors( this.set(["tooltip", "title"], title); if (tooltip.beforeBody) { - this.set(["tooltip", "beforeBody"], tooltip.beforeBody.join("\n")); + this.set(["tooltip", "beforeBody"], tooltip.beforeBody.join("\n")); } const bodyLines = tooltip.body.map((n) => n.lines); diff --git a/src/components/ha-menu-button.ts b/src/components/ha-menu-button.ts index baac1dc297..b95d012938 100644 --- a/src/components/ha-menu-button.ts +++ b/src/components/ha-menu-button.ts @@ -6,9 +6,9 @@ import { CSSResult, customElement, html, + internalProperty, LitElement, property, - internalProperty, TemplateResult, } from "lit-element"; import { fireEvent } from "../common/dom/fire_event"; @@ -98,8 +98,7 @@ class HaMenuButton extends LitElement { return; } - this.style.display = - newNarrow || this._alwaysVisible ? "initial" : "none"; + this.style.display = newNarrow || this._alwaysVisible ? "initial" : "none"; if (!newNarrow) { this._hasNotifications = false; diff --git a/src/panels/config/person/ha-config-person.ts b/src/panels/config/person/ha-config-person.ts index 467b04673a..d7403b341a 100644 --- a/src/panels/config/person/ha-config-person.ts +++ b/src/panels/config/person/ha-config-person.ts @@ -1,7 +1,7 @@ +import "@material/mwc-fab"; import { mdiPlus } from "@mdi/js"; import "@polymer/paper-item/paper-icon-item"; import "@polymer/paper-item/paper-item-body"; -import "@material/mwc-fab"; import { css, CSSResult, @@ -24,8 +24,8 @@ import { } from "../../../data/person"; import { fetchUsers, User } from "../../../data/user"; import { - showConfirmationDialog, showAlertDialog, + showConfirmationDialog, } from "../../../dialogs/generic/show-dialog-box"; import "../../../layouts/hass-loading-screen"; import "../../../layouts/hass-tabs-subpage"; @@ -87,22 +87,16 @@ class HaConfigPerson extends LitElement {
` : ""} - + - ${this.hass.localize( - "ui.panel.config.person.learn_more" - )} + ${this.hass.localize("ui.panel.config.person.learn_more")} -- ${this.hass.localize( - "ui.panel.config.tags.detail.usage", - "companion_link", - html`${this.hass!.localize( - "ui.panel.config.tags.detail.companion_apps" - )}` - )} + ${this.hass.localize( + "ui.panel.config.tags.detail.usage", + "companion_link", + html`${this.hass!.localize( + "ui.panel.config.tags.detail.companion_apps" + )}` + )}