mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-14 04:46:34 +00:00
Update dependency prettier to v3.1.0 (#18675)
* Update dependency prettier to v3.1.0 * Reformat --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Steve Repsher <steverep@users.noreply.github.com>
This commit is contained in:
parent
6e66ba202f
commit
15395275ba
@ -17,7 +17,10 @@ class SupervisorFormfieldLabel extends LitElement {
|
|||||||
${this.imageUrl
|
${this.imageUrl
|
||||||
? html`<img loading="lazy" alt="" src=${this.imageUrl} class="icon" />`
|
? html`<img loading="lazy" alt="" src=${this.imageUrl} class="icon" />`
|
||||||
: this.iconPath
|
: this.iconPath
|
||||||
? html`<ha-svg-icon .path=${this.iconPath} class="icon"></ha-svg-icon>`
|
? html`<ha-svg-icon
|
||||||
|
.path=${this.iconPath}
|
||||||
|
class="icon"
|
||||||
|
></ha-svg-icon>`
|
||||||
: ""}
|
: ""}
|
||||||
<span class="label">${this.label}</span>
|
<span class="label">${this.label}</span>
|
||||||
${this.version
|
${this.version
|
||||||
|
@ -71,7 +71,9 @@ class HassioAddons extends LitElement {
|
|||||||
? this.supervisor.localize(
|
? this.supervisor.localize(
|
||||||
"dashboard.addon_new_version"
|
"dashboard.addon_new_version"
|
||||||
)
|
)
|
||||||
: this.supervisor.localize("dashboard.addon_running")}
|
: this.supervisor.localize(
|
||||||
|
"dashboard.addon_running"
|
||||||
|
)}
|
||||||
.iconClass=${addon.update_available
|
.iconClass=${addon.update_available
|
||||||
? addon.state === "started"
|
? addon.state === "started"
|
||||||
? "update"
|
? "update"
|
||||||
|
@ -152,11 +152,14 @@ class UpdateAvailableCard extends LitElement {
|
|||||||
: ""}
|
: ""}
|
||||||
<div class="versions">
|
<div class="versions">
|
||||||
<p>
|
<p>
|
||||||
${this.supervisor.localize("update_available.description", {
|
${this.supervisor.localize(
|
||||||
|
"update_available.description",
|
||||||
|
{
|
||||||
name: this._name,
|
name: this._name,
|
||||||
version: this._version,
|
version: this._version,
|
||||||
newest_version: this._version_latest,
|
newest_version: this._version_latest,
|
||||||
})}
|
}
|
||||||
|
)}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
${["core", "addon"].includes(this._updateType)
|
${["core", "addon"].includes(this._updateType)
|
||||||
|
@ -229,7 +229,7 @@
|
|||||||
"object-hash": "3.0.0",
|
"object-hash": "3.0.0",
|
||||||
"open": "9.1.0",
|
"open": "9.1.0",
|
||||||
"pinst": "3.0.0",
|
"pinst": "3.0.0",
|
||||||
"prettier": "3.0.3",
|
"prettier": "3.1.0",
|
||||||
"rollup": "2.79.1",
|
"rollup": "2.79.1",
|
||||||
"rollup-plugin-string": "3.0.0",
|
"rollup-plugin-string": "3.0.0",
|
||||||
"rollup-plugin-terser": "7.0.2",
|
"rollup-plugin-terser": "7.0.2",
|
||||||
|
@ -37,7 +37,9 @@ export class HaFormExpendable extends LitElement implements HaFormElement {
|
|||||||
${this.schema.icon
|
${this.schema.icon
|
||||||
? html` <ha-icon .icon=${this.schema.icon}></ha-icon> `
|
? html` <ha-icon .icon=${this.schema.icon}></ha-icon> `
|
||||||
: this.schema.iconPath
|
: this.schema.iconPath
|
||||||
? html` <ha-svg-icon .path=${this.schema.iconPath}></ha-svg-icon> `
|
? html`
|
||||||
|
<ha-svg-icon .path=${this.schema.iconPath}></ha-svg-icon>
|
||||||
|
`
|
||||||
: nothing}
|
: nothing}
|
||||||
${this.schema.title}
|
${this.schema.title}
|
||||||
</div>
|
</div>
|
||||||
|
@ -503,7 +503,10 @@ class HaSidebar extends SubscribeMixin(LitElement) {
|
|||||||
slot="item-icon"
|
slot="item-icon"
|
||||||
.path=${PANEL_ICONS[panel.url_path]}
|
.path=${PANEL_ICONS[panel.url_path]}
|
||||||
></ha-svg-icon>`
|
></ha-svg-icon>`
|
||||||
: html`<ha-icon slot="item-icon" .icon=${panel.icon}></ha-icon>`}
|
: html`<ha-icon
|
||||||
|
slot="item-icon"
|
||||||
|
.icon=${panel.icon}
|
||||||
|
></ha-icon>`}
|
||||||
<span class="item-text"
|
<span class="item-text"
|
||||||
>${panel.url_path === this.hass.defaultPanel
|
>${panel.url_path === this.hass.defaultPanel
|
||||||
? this.hass.localize("panel.states")
|
? this.hass.localize("panel.states")
|
||||||
|
@ -485,7 +485,8 @@ export class HaMediaPlayerBrowse extends LitElement {
|
|||||||
itemSize: {
|
itemSize: {
|
||||||
width: "175px",
|
width: "175px",
|
||||||
height:
|
height:
|
||||||
childrenMediaClass.thumbnail_ratio === "portrait"
|
childrenMediaClass.thumbnail_ratio ===
|
||||||
|
"portrait"
|
||||||
? "312px"
|
? "312px"
|
||||||
: "225px",
|
: "225px",
|
||||||
},
|
},
|
||||||
@ -498,7 +499,8 @@ export class HaMediaPlayerBrowse extends LitElement {
|
|||||||
.renderItem=${this._renderGridItem}
|
.renderItem=${this._renderGridItem}
|
||||||
class="children ${classMap({
|
class="children ${classMap({
|
||||||
portrait:
|
portrait:
|
||||||
childrenMediaClass.thumbnail_ratio === "portrait",
|
childrenMediaClass.thumbnail_ratio ===
|
||||||
|
"portrait",
|
||||||
not_shown: !!currentItem.not_shown,
|
not_shown: !!currentItem.not_shown,
|
||||||
})}"
|
})}"
|
||||||
></lit-virtualizer>
|
></lit-virtualizer>
|
||||||
|
@ -309,7 +309,8 @@ class DataEntryFlowDialog extends LitElement {
|
|||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
></step-flow-menu>
|
></step-flow-menu>
|
||||||
`
|
`
|
||||||
: this._devices === undefined || this._areas === undefined
|
: this._devices === undefined ||
|
||||||
|
this._areas === undefined
|
||||||
? // When it's a create entry result, we will fetch device & area registry
|
? // When it's a create entry result, we will fetch device & area registry
|
||||||
html`
|
html`
|
||||||
<step-flow-loading
|
<step-flow-loading
|
||||||
|
@ -235,7 +235,8 @@ export class QuickBar extends LitElement {
|
|||||||
height: this._narrow
|
height: this._narrow
|
||||||
? "calc(100vh - 56px)"
|
? "calc(100vh - 56px)"
|
||||||
: `${Math.min(
|
: `${Math.min(
|
||||||
items.length * (this._commandMode ? 56 : 72) + 26,
|
items.length * (this._commandMode ? 56 : 72) +
|
||||||
|
26,
|
||||||
500
|
500
|
||||||
)}px`,
|
)}px`,
|
||||||
})}
|
})}
|
||||||
|
@ -348,7 +348,10 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) {
|
|||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
"ui.panel.config.automation.editor.read_only"
|
"ui.panel.config.automation.editor.read_only"
|
||||||
)}
|
)}
|
||||||
<mwc-button slot="action" @click=${this._duplicate}>
|
<mwc-button
|
||||||
|
slot="action"
|
||||||
|
@click=${this._duplicate}
|
||||||
|
>
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
"ui.panel.config.automation.editor.migrate"
|
"ui.panel.config.automation.editor.migrate"
|
||||||
)}
|
)}
|
||||||
@ -361,7 +364,10 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) {
|
|||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
"ui.panel.config.automation.editor.disabled"
|
"ui.panel.config.automation.editor.disabled"
|
||||||
)}
|
)}
|
||||||
<mwc-button slot="action" @click=${this._toggle}>
|
<mwc-button
|
||||||
|
slot="action"
|
||||||
|
@click=${this._toggle}
|
||||||
|
>
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
"ui.panel.config.automation.editor.enable"
|
"ui.panel.config.automation.editor.enable"
|
||||||
)}
|
)}
|
||||||
|
@ -92,7 +92,9 @@ export class CloudWebhooks extends LitElement {
|
|||||||
${this._progress.includes(entry.webhook_id)
|
${this._progress.includes(entry.webhook_id)
|
||||||
? html`
|
? html`
|
||||||
<div class="progress">
|
<div class="progress">
|
||||||
<ha-circular-progress active></ha-circular-progress>
|
<ha-circular-progress
|
||||||
|
active
|
||||||
|
></ha-circular-progress>
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
: this._cloudHooks![entry.webhook_id]
|
: this._cloudHooks![entry.webhook_id]
|
||||||
|
@ -99,7 +99,9 @@ export class EntityRegistrySettings extends SubscribeMixin(LitElement) {
|
|||||||
: this.entry.disabled_by
|
: this.entry.disabled_by
|
||||||
? html`${this.hass!.localize(
|
? html`${this.hass!.localize(
|
||||||
"ui.dialogs.entity_registry.editor.entity_disabled"
|
"ui.dialogs.entity_registry.editor.entity_disabled"
|
||||||
)}${["user", "integration"].includes(this.entry.disabled_by!)
|
)}${["user", "integration"].includes(
|
||||||
|
this.entry.disabled_by!
|
||||||
|
)
|
||||||
? html`<mwc-button
|
? html`<mwc-button
|
||||||
slot="action"
|
slot="action"
|
||||||
@click=${this._enableEntry}
|
@click=${this._enableEntry}
|
||||||
|
@ -494,12 +494,15 @@ class HaConfigIntegrationsDashboard extends SubscribeMixin(LitElement) {
|
|||||||
? ""
|
? ""
|
||||||
: // If we're showing 0 cards, show empty state text
|
: // If we're showing 0 cards, show empty state text
|
||||||
(!this._showIgnored || ignoredConfigEntries.length === 0) &&
|
(!this._showIgnored || ignoredConfigEntries.length === 0) &&
|
||||||
(!this._showDisabled || disabledConfigEntries.length === 0) &&
|
(!this._showDisabled ||
|
||||||
|
disabledConfigEntries.length === 0) &&
|
||||||
integrations.length === 0
|
integrations.length === 0
|
||||||
? html`
|
? html`
|
||||||
<div class="empty-message">
|
<div class="empty-message">
|
||||||
<h1>
|
<h1>
|
||||||
${this.hass.localize("ui.panel.config.integrations.none")}
|
${this.hass.localize(
|
||||||
|
"ui.panel.config.integrations.none"
|
||||||
|
)}
|
||||||
</h1>
|
</h1>
|
||||||
<p>
|
<p>
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
|
@ -125,8 +125,8 @@ class DialogZWaveJSAddNode extends LitElement {
|
|||||||
.label=${html`<b>Secure if possible</b>
|
.label=${html`<b>Secure if possible</b>
|
||||||
<div class="secondary">
|
<div class="secondary">
|
||||||
Requires user interaction during inclusion. Fast and
|
Requires user interaction during inclusion. Fast and
|
||||||
secure with S2 when supported. Fallback to legacy S0 or no
|
secure with S2 when supported. Fallback to legacy S0 or
|
||||||
encryption when necessary.
|
no encryption when necessary.
|
||||||
</div>`}
|
</div>`}
|
||||||
>
|
>
|
||||||
<ha-radio
|
<ha-radio
|
||||||
@ -142,9 +142,9 @@ class DialogZWaveJSAddNode extends LitElement {
|
|||||||
<ha-formfield
|
<ha-formfield
|
||||||
.label=${html`<b>Legacy Secure</b>
|
.label=${html`<b>Legacy Secure</b>
|
||||||
<div class="secondary">
|
<div class="secondary">
|
||||||
Uses the older S0 security that is secure, but slow due to
|
Uses the older S0 security that is secure, but slow due
|
||||||
a lot of overhead. Allows securely including S2 capable
|
to a lot of overhead. Allows securely including S2
|
||||||
devices which fail to be included with S2.
|
capable devices which fail to be included with S2.
|
||||||
</div>`}
|
</div>`}
|
||||||
>
|
>
|
||||||
<ha-radio
|
<ha-radio
|
||||||
@ -178,14 +178,18 @@ class DialogZWaveJSAddNode extends LitElement {
|
|||||||
</mwc-button>`
|
</mwc-button>`
|
||||||
: this._status === "qr_scan"
|
: this._status === "qr_scan"
|
||||||
? html`${this._error
|
? html`${this._error
|
||||||
? html`<ha-alert alert-type="error">${this._error}</ha-alert>`
|
? html`<ha-alert alert-type="error"
|
||||||
|
>${this._error}</ha-alert
|
||||||
|
>`
|
||||||
: ""}
|
: ""}
|
||||||
<ha-qr-scanner
|
<ha-qr-scanner
|
||||||
.localize=${this.hass.localize}
|
.localize=${this.hass.localize}
|
||||||
@qr-code-scanned=${this._qrCodeScanned}
|
@qr-code-scanned=${this._qrCodeScanned}
|
||||||
></ha-qr-scanner>
|
></ha-qr-scanner>
|
||||||
<mwc-button slot="secondaryAction" @click=${this._startOver}>
|
<mwc-button slot="secondaryAction" @click=${this._startOver}>
|
||||||
${this.hass.localize("ui.panel.config.zwave_js.common.back")}
|
${this.hass.localize(
|
||||||
|
"ui.panel.config.zwave_js.common.back"
|
||||||
|
)}
|
||||||
</mwc-button>`
|
</mwc-button>`
|
||||||
: this._status === "validate_dsk_enter_pin"
|
: this._status === "validate_dsk_enter_pin"
|
||||||
? html`
|
? html`
|
||||||
@ -219,9 +223,13 @@ class DialogZWaveJSAddNode extends LitElement {
|
|||||||
`
|
`
|
||||||
: this._status === "grant_security_classes"
|
: this._status === "grant_security_classes"
|
||||||
? html`
|
? html`
|
||||||
<h3>The device has requested the following security classes:</h3>
|
<h3>
|
||||||
|
The device has requested the following security classes:
|
||||||
|
</h3>
|
||||||
${this._error
|
${this._error
|
||||||
? html`<ha-alert alert-type="error">${this._error}</ha-alert>`
|
? html`<ha-alert alert-type="error"
|
||||||
|
>${this._error}</ha-alert
|
||||||
|
>`
|
||||||
: ""}
|
: ""}
|
||||||
<div class="flex-column">
|
<div class="flex-column">
|
||||||
${this._requestedGrant?.securityClasses
|
${this._requestedGrant?.securityClasses
|
||||||
@ -264,10 +272,13 @@ class DialogZWaveJSAddNode extends LitElement {
|
|||||||
? html`
|
? html`
|
||||||
<h3>Timed out!</h3>
|
<h3>Timed out!</h3>
|
||||||
<p>
|
<p>
|
||||||
We have not found any device in inclusion mode. Make sure the
|
We have not found any device in inclusion mode. Make
|
||||||
device is active and in inclusion mode.
|
sure the device is active and in inclusion mode.
|
||||||
</p>
|
</p>
|
||||||
<mwc-button slot="primaryAction" @click=${this._startOver}>
|
<mwc-button
|
||||||
|
slot="primaryAction"
|
||||||
|
@click=${this._startOver}
|
||||||
|
>
|
||||||
Retry
|
Retry
|
||||||
</mwc-button>
|
</mwc-button>
|
||||||
`
|
`
|
||||||
@ -292,7 +303,9 @@ class DialogZWaveJSAddNode extends LitElement {
|
|||||||
"ui.panel.config.zwave_js.add_node.searching_device"
|
"ui.panel.config.zwave_js.add_node.searching_device"
|
||||||
)}
|
)}
|
||||||
</h2>
|
</h2>
|
||||||
<ha-circular-progress active></ha-circular-progress>
|
<ha-circular-progress
|
||||||
|
active
|
||||||
|
></ha-circular-progress>
|
||||||
<p>
|
<p>
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
"ui.panel.config.zwave_js.add_node.follow_device_instructions"
|
"ui.panel.config.zwave_js.add_node.follow_device_instructions"
|
||||||
@ -316,7 +329,9 @@ class DialogZWaveJSAddNode extends LitElement {
|
|||||||
"ui.panel.config.zwave_js.add_node.qr_code"
|
"ui.panel.config.zwave_js.add_node.qr_code"
|
||||||
)}
|
)}
|
||||||
</h2>
|
</h2>
|
||||||
<ha-svg-icon .path=${mdiQrcodeScan}></ha-svg-icon>
|
<ha-svg-icon
|
||||||
|
.path=${mdiQrcodeScan}
|
||||||
|
></ha-svg-icon>
|
||||||
<p>
|
<p>
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
"ui.panel.config.zwave_js.add_node.qr_code_paragraph"
|
"ui.panel.config.zwave_js.add_node.qr_code_paragraph"
|
||||||
@ -332,14 +347,19 @@ class DialogZWaveJSAddNode extends LitElement {
|
|||||||
</div>`
|
</div>`
|
||||||
: ""}
|
: ""}
|
||||||
</div>
|
</div>
|
||||||
<mwc-button slot="primaryAction" @click=${this.closeDialog}>
|
<mwc-button
|
||||||
|
slot="primaryAction"
|
||||||
|
@click=${this.closeDialog}
|
||||||
|
>
|
||||||
${this.hass.localize("ui.common.cancel")}
|
${this.hass.localize("ui.common.cancel")}
|
||||||
</mwc-button>
|
</mwc-button>
|
||||||
`
|
`
|
||||||
: this._status === "interviewing"
|
: this._status === "interviewing"
|
||||||
? html`
|
? html`
|
||||||
<div class="flex-container">
|
<div class="flex-container">
|
||||||
<ha-circular-progress active></ha-circular-progress>
|
<ha-circular-progress
|
||||||
|
active
|
||||||
|
></ha-circular-progress>
|
||||||
<div class="status">
|
<div class="status">
|
||||||
<p>
|
<p>
|
||||||
<b
|
<b
|
||||||
@ -365,7 +385,10 @@ class DialogZWaveJSAddNode extends LitElement {
|
|||||||
: ""}
|
: ""}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<mwc-button slot="primaryAction" @click=${this.closeDialog}>
|
<mwc-button
|
||||||
|
slot="primaryAction"
|
||||||
|
@click=${this.closeDialog}
|
||||||
|
>
|
||||||
${this.hass.localize("ui.common.close")}
|
${this.hass.localize("ui.common.close")}
|
||||||
</mwc-button>
|
</mwc-button>
|
||||||
`
|
`
|
||||||
@ -401,7 +424,10 @@ class DialogZWaveJSAddNode extends LitElement {
|
|||||||
: ""}
|
: ""}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<mwc-button slot="primaryAction" @click=${this.closeDialog}>
|
<mwc-button
|
||||||
|
slot="primaryAction"
|
||||||
|
@click=${this.closeDialog}
|
||||||
|
>
|
||||||
${this.hass.localize("ui.common.close")}
|
${this.hass.localize("ui.common.close")}
|
||||||
</mwc-button>
|
</mwc-button>
|
||||||
`
|
`
|
||||||
@ -409,8 +435,12 @@ class DialogZWaveJSAddNode extends LitElement {
|
|||||||
? html`
|
? html`
|
||||||
<div class="flex-container">
|
<div class="flex-container">
|
||||||
<ha-svg-icon
|
<ha-svg-icon
|
||||||
.path=${this._lowSecurity ? mdiAlertCircle : mdiCheckCircle}
|
.path=${this._lowSecurity
|
||||||
class=${this._lowSecurity ? "warning" : "success"}
|
? mdiAlertCircle
|
||||||
|
: mdiCheckCircle}
|
||||||
|
class=${this._lowSecurity
|
||||||
|
? "warning"
|
||||||
|
: "success"}
|
||||||
></ha-svg-icon>
|
></ha-svg-icon>
|
||||||
<div class="status">
|
<div class="status">
|
||||||
<p>
|
<p>
|
||||||
@ -423,11 +453,17 @@ class DialogZWaveJSAddNode extends LitElement {
|
|||||||
alert-type="warning"
|
alert-type="warning"
|
||||||
title="The device was added insecurely"
|
title="The device was added insecurely"
|
||||||
>
|
>
|
||||||
There was an error during secure inclusion. You can try
|
There was an error during secure
|
||||||
again by excluding the device and adding it again.
|
inclusion. You can try again by
|
||||||
|
excluding the device and adding it
|
||||||
|
again.
|
||||||
</ha-alert>`
|
</ha-alert>`
|
||||||
: ""}
|
: ""}
|
||||||
<a href=${`/config/devices/device/${this._device!.id}`}>
|
<a
|
||||||
|
href=${`/config/devices/device/${
|
||||||
|
this._device!.id
|
||||||
|
}`}
|
||||||
|
>
|
||||||
<mwc-button>
|
<mwc-button>
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
"ui.panel.config.zwave_js.add_node.view_device"
|
"ui.panel.config.zwave_js.add_node.view_device"
|
||||||
@ -451,7 +487,10 @@ class DialogZWaveJSAddNode extends LitElement {
|
|||||||
: ""}
|
: ""}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<mwc-button slot="primaryAction" @click=${this.closeDialog}>
|
<mwc-button
|
||||||
|
slot="primaryAction"
|
||||||
|
@click=${this.closeDialog}
|
||||||
|
>
|
||||||
${this.hass.localize("ui.common.close")}
|
${this.hass.localize("ui.common.close")}
|
||||||
</mwc-button>
|
</mwc-button>
|
||||||
`
|
`
|
||||||
@ -469,7 +508,10 @@ class DialogZWaveJSAddNode extends LitElement {
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<mwc-button slot="primaryAction" @click=${this.closeDialog}>
|
<mwc-button
|
||||||
|
slot="primaryAction"
|
||||||
|
@click=${this.closeDialog}
|
||||||
|
>
|
||||||
${this.hass.localize("ui.common.close")}
|
${this.hass.localize("ui.common.close")}
|
||||||
</mwc-button>`
|
</mwc-button>`
|
||||||
: ""}
|
: ""}
|
||||||
|
@ -119,7 +119,8 @@ export class AssistPipelineRunDebug extends LitElement {
|
|||||||
</ha-button>
|
</ha-button>
|
||||||
`
|
`
|
||||||
: this._finished
|
: this._finished
|
||||||
? this._pipelineRuns[0].init_options!.start_stage === "wake_word"
|
? this._pipelineRuns[0].init_options!.start_stage ===
|
||||||
|
"wake_word"
|
||||||
? html`
|
? html`
|
||||||
<ha-button @click=${this._runAudioWakeWordPipeline}>
|
<ha-button @click=${this._runAudioWakeWordPipeline}>
|
||||||
Continue listening for wake word
|
Continue listening for wake word
|
||||||
|
@ -196,9 +196,8 @@ export class HuiLightCard extends LitElement implements LovelaceCard {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _dragEvent(e: any): void {
|
private _dragEvent(e: any): void {
|
||||||
this.shadowRoot!.querySelector(
|
this.shadowRoot!.querySelector(".brightness")!.innerHTML =
|
||||||
".brightness"
|
`${e.detail.value} %`;
|
||||||
)!.innerHTML = `${e.detail.value} %`;
|
|
||||||
this._showBrightness();
|
this._showBrightness();
|
||||||
this._hideBrightness();
|
this._hideBrightness();
|
||||||
}
|
}
|
||||||
|
@ -125,7 +125,8 @@ class HuiGenericEntityRow extends LitElement {
|
|||||||
? html`
|
? html`
|
||||||
<ha-relative-time
|
<ha-relative-time
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
.datetime=${stateObj.attributes.last_triggered}
|
.datetime=${stateObj.attributes
|
||||||
|
.last_triggered}
|
||||||
capitalize
|
capitalize
|
||||||
></ha-relative-time>
|
></ha-relative-time>
|
||||||
`
|
`
|
||||||
@ -133,19 +134,25 @@ class HuiGenericEntityRow extends LitElement {
|
|||||||
"ui.panel.lovelace.cards.entities.never_triggered"
|
"ui.panel.lovelace.cards.entities.never_triggered"
|
||||||
)
|
)
|
||||||
: this.config.secondary_info === "position" &&
|
: this.config.secondary_info === "position" &&
|
||||||
stateObj.attributes.current_position !== undefined
|
stateObj.attributes.current_position !==
|
||||||
? `${this.hass.localize("ui.card.cover.position")}: ${
|
undefined
|
||||||
stateObj.attributes.current_position
|
? `${this.hass.localize(
|
||||||
}`
|
"ui.card.cover.position"
|
||||||
: this.config.secondary_info === "tilt-position" &&
|
)}: ${stateObj.attributes.current_position}`
|
||||||
stateObj.attributes.current_tilt_position !== undefined
|
: this.config.secondary_info ===
|
||||||
|
"tilt-position" &&
|
||||||
|
stateObj.attributes.current_tilt_position !==
|
||||||
|
undefined
|
||||||
? `${this.hass.localize(
|
? `${this.hass.localize(
|
||||||
"ui.card.cover.tilt_position"
|
"ui.card.cover.tilt_position"
|
||||||
)}: ${stateObj.attributes.current_tilt_position}`
|
)}: ${
|
||||||
|
stateObj.attributes.current_tilt_position
|
||||||
|
}`
|
||||||
: this.config.secondary_info === "brightness" &&
|
: this.config.secondary_info === "brightness" &&
|
||||||
stateObj.attributes.brightness
|
stateObj.attributes.brightness
|
||||||
? html`${Math.round(
|
? html`${Math.round(
|
||||||
(stateObj.attributes.brightness / 255) * 100
|
(stateObj.attributes.brightness / 255) *
|
||||||
|
100
|
||||||
)}
|
)}
|
||||||
%`
|
%`
|
||||||
: "")}
|
: "")}
|
||||||
|
@ -280,7 +280,9 @@ class HUIRoot extends LitElement {
|
|||||||
)}
|
)}
|
||||||
</ha-tabs>
|
</ha-tabs>
|
||||||
`
|
`
|
||||||
: html`<div class="main-title">${this.config.title}</div>`}
|
: html`<div class="main-title">
|
||||||
|
${this.config.title}
|
||||||
|
</div>`}
|
||||||
<div class="action-items">
|
<div class="action-items">
|
||||||
${!this.narrow
|
${!this.narrow
|
||||||
? html`
|
? html`
|
||||||
|
@ -106,7 +106,9 @@ class HaMfaModuleSetupFlow extends LitElement {
|
|||||||
allowsvg
|
allowsvg
|
||||||
breaks
|
breaks
|
||||||
.content=${this.hass.localize(
|
.content=${this.hass.localize(
|
||||||
`component.auth.mfa_setup.${this._step!.handler}.step.${
|
`component.auth.mfa_setup.${
|
||||||
|
this._step!.handler
|
||||||
|
}.step.${
|
||||||
(this._step! as DataEntryFlowStepForm).step_id
|
(this._step! as DataEntryFlowStepForm).step_id
|
||||||
}.description`,
|
}.description`,
|
||||||
this._step!.description_placeholders
|
this._step!.description_placeholders
|
||||||
@ -115,7 +117,9 @@ class HaMfaModuleSetupFlow extends LitElement {
|
|||||||
<ha-form
|
<ha-form
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
.data=${this._stepData}
|
.data=${this._stepData}
|
||||||
.schema=${autocompleteLoginFields(this._step.data_schema)}
|
.schema=${autocompleteLoginFields(
|
||||||
|
this._step.data_schema
|
||||||
|
)}
|
||||||
.error=${this._step.errors}
|
.error=${this._step.errors}
|
||||||
.computeLabel=${this._computeLabel}
|
.computeLabel=${this._computeLabel}
|
||||||
.computeError=${this._computeError}
|
.computeError=${this._computeError}
|
||||||
|
10
yarn.lock
10
yarn.lock
@ -9730,7 +9730,7 @@ __metadata:
|
|||||||
object-hash: "npm:3.0.0"
|
object-hash: "npm:3.0.0"
|
||||||
open: "npm:9.1.0"
|
open: "npm:9.1.0"
|
||||||
pinst: "npm:3.0.0"
|
pinst: "npm:3.0.0"
|
||||||
prettier: "npm:3.0.3"
|
prettier: "npm:3.1.0"
|
||||||
proxy-polyfill: "npm:0.3.2"
|
proxy-polyfill: "npm:0.3.2"
|
||||||
punycode: "npm:2.3.1"
|
punycode: "npm:2.3.1"
|
||||||
qr-scanner: "npm:1.4.2"
|
qr-scanner: "npm:1.4.2"
|
||||||
@ -13168,12 +13168,12 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"prettier@npm:3.0.3":
|
"prettier@npm:3.1.0":
|
||||||
version: 3.0.3
|
version: 3.1.0
|
||||||
resolution: "prettier@npm:3.0.3"
|
resolution: "prettier@npm:3.1.0"
|
||||||
bin:
|
bin:
|
||||||
prettier: bin/prettier.cjs
|
prettier: bin/prettier.cjs
|
||||||
checksum: ccf1ead9794b017be6b42d0873f459070beef2069eb393c8b4c0d11aa3430acefc54f6d5f44a5b7ce9af05ad8daf694b912f0aa2808d1c22dfa86e61e9d563f8
|
checksum: e95e8f93c6b9aea2ac1e86bebe329bee90c8c50d9a23d1f593eba8d7f39b33b3641eb28785001505b6723c47895a5322ad12a2fb855b289cb7bae450ffc34425
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user