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