Update dependency prettier to v3.2.0 (#19411)
* Update dependency prettier to v3.2.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
3842e8e3a7
commit
6f8c366bad
|
@ -157,11 +157,10 @@ class HassioRegistriesDialog extends LitElement {
|
|||
}
|
||||
|
||||
public focus(): void {
|
||||
this.updateComplete.then(
|
||||
() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
this.updateComplete.then(() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -209,11 +209,10 @@ class HassioRepositoriesDialog extends LitElement {
|
|||
}
|
||||
|
||||
public focus() {
|
||||
this.updateComplete.then(
|
||||
() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
this.updateComplete.then(() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -224,7 +224,7 @@
|
|||
"object-hash": "3.0.0",
|
||||
"open": "10.0.3",
|
||||
"pinst": "3.0.0",
|
||||
"prettier": "3.1.1",
|
||||
"prettier": "3.2.0",
|
||||
"rollup": "2.79.1",
|
||||
"rollup-plugin-string": "3.0.0",
|
||||
"rollup-plugin-terser": "7.0.2",
|
||||
|
|
|
@ -40,40 +40,38 @@ class HaUsersPickerLight extends LitElement {
|
|||
|
||||
const notSelectedUsers = this._notSelectedUsers(this.users, this.value);
|
||||
return html`
|
||||
${guard(
|
||||
[notSelectedUsers],
|
||||
() =>
|
||||
this.value?.map(
|
||||
(user_id, idx) => html`
|
||||
<div>
|
||||
<ha-user-picker
|
||||
.label=${this.pickedUserLabel}
|
||||
.noUserLabel=${this.hass!.localize(
|
||||
"ui.components.user-picker.remove_user"
|
||||
)}
|
||||
.index=${idx}
|
||||
.hass=${this.hass}
|
||||
.value=${user_id}
|
||||
.users=${this._notSelectedUsersAndSelected(
|
||||
user_id,
|
||||
this.users,
|
||||
notSelectedUsers
|
||||
)}
|
||||
@value-changed=${this._userChanged}
|
||||
></ha-user-picker>
|
||||
<ha-icon-button
|
||||
.userId=${user_id}
|
||||
.label=${this.hass!.localize(
|
||||
"ui.components.user-picker.remove_user"
|
||||
)}
|
||||
.path=${mdiClose}
|
||||
@click=${this._removeUser}
|
||||
>
|
||||
></ha-icon-button
|
||||
>
|
||||
</div>
|
||||
`
|
||||
)
|
||||
${guard([notSelectedUsers], () =>
|
||||
this.value?.map(
|
||||
(user_id, idx) => html`
|
||||
<div>
|
||||
<ha-user-picker
|
||||
.label=${this.pickedUserLabel}
|
||||
.noUserLabel=${this.hass!.localize(
|
||||
"ui.components.user-picker.remove_user"
|
||||
)}
|
||||
.index=${idx}
|
||||
.hass=${this.hass}
|
||||
.value=${user_id}
|
||||
.users=${this._notSelectedUsersAndSelected(
|
||||
user_id,
|
||||
this.users,
|
||||
notSelectedUsers
|
||||
)}
|
||||
@value-changed=${this._userChanged}
|
||||
></ha-user-picker>
|
||||
<ha-icon-button
|
||||
.userId=${user_id}
|
||||
.label=${this.hass!.localize(
|
||||
"ui.components.user-picker.remove_user"
|
||||
)}
|
||||
.path=${mdiClose}
|
||||
@click=${this._removeUser}
|
||||
>
|
||||
></ha-icon-button
|
||||
>
|
||||
</div>
|
||||
`
|
||||
)
|
||||
)}
|
||||
<ha-user-picker
|
||||
.label=${this.pickUserLabel ||
|
||||
|
|
|
@ -177,8 +177,9 @@ class HaConfigSystemNavigation extends LitElement {
|
|||
const hardwareInfo: HardwareInfo = await this.hass.callWS({
|
||||
type: "hardware/info",
|
||||
});
|
||||
this._boardName = hardwareInfo?.hardware.find((hw) => hw.board !== null)
|
||||
?.name;
|
||||
this._boardName = hardwareInfo?.hardware.find(
|
||||
(hw) => hw.board !== null
|
||||
)?.name;
|
||||
} else if (isHassioLoaded) {
|
||||
const osData: HassioHassOSInfo = await fetchHassioHassOsInfo(this.hass);
|
||||
if (osData.board) {
|
||||
|
|
|
@ -917,9 +917,11 @@ export class EntityRegistrySettingsEditor extends LitElement {
|
|||
"ui.dialogs.entity_registry.editor.use_device_area"
|
||||
)}
|
||||
${this.hass.devices[this.entry.device_id].area_id
|
||||
? `(${this.hass.areas[
|
||||
this.hass.devices[this.entry.device_id].area_id!
|
||||
]?.name})`
|
||||
? `(${
|
||||
this.hass.areas[
|
||||
this.hass.devices[this.entry.device_id].area_id!
|
||||
]?.name
|
||||
})`
|
||||
: ""}</span
|
||||
>
|
||||
<span slot="description"
|
||||
|
|
|
@ -53,11 +53,10 @@ class HaCounterForm extends LitElement {
|
|||
}
|
||||
|
||||
public focus() {
|
||||
this.updateComplete.then(
|
||||
() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
this.updateComplete.then(() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -31,11 +31,10 @@ class HaInputBooleanForm extends LitElement {
|
|||
}
|
||||
|
||||
public focus() {
|
||||
this.updateComplete.then(
|
||||
() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
this.updateComplete.then(() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -31,11 +31,10 @@ class HaInputButtonForm extends LitElement {
|
|||
}
|
||||
|
||||
public focus() {
|
||||
this.updateComplete.then(
|
||||
() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
this.updateComplete.then(() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -45,11 +45,10 @@ class HaInputDateTimeForm extends LitElement {
|
|||
}
|
||||
|
||||
public focus() {
|
||||
this.updateComplete.then(
|
||||
() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
this.updateComplete.then(() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -60,11 +60,10 @@ class HaInputNumberForm extends LitElement {
|
|||
}
|
||||
|
||||
public focus() {
|
||||
this.updateComplete.then(
|
||||
() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
this.updateComplete.then(() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -58,11 +58,10 @@ class HaInputSelectForm extends LitElement {
|
|||
}
|
||||
|
||||
public focus() {
|
||||
this.updateComplete.then(
|
||||
() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
this.updateComplete.then(() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -50,11 +50,10 @@ class HaInputTextForm extends LitElement {
|
|||
}
|
||||
|
||||
public focus() {
|
||||
this.updateComplete.then(
|
||||
() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
this.updateComplete.then(() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -108,11 +108,10 @@ class HaScheduleForm extends LitElement {
|
|||
}
|
||||
|
||||
public focus() {
|
||||
this.updateComplete.then(
|
||||
() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
this.updateComplete.then(() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -39,11 +39,10 @@ class HaTimerForm extends LitElement {
|
|||
}
|
||||
|
||||
public focus() {
|
||||
this.updateComplete.then(
|
||||
() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
this.updateComplete.then(() =>
|
||||
(
|
||||
this.shadowRoot?.querySelector("[dialogInitialFocus]") as HTMLElement
|
||||
)?.focus()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -50,8 +50,8 @@ export class HaManualScriptEditor extends LitElement {
|
|||
protected updated(changedProps) {
|
||||
if (this._openFields && changedProps.has("config")) {
|
||||
this._openFields = false;
|
||||
this._scriptFields?.updateComplete.then(
|
||||
() => this._scriptFields?.focusLastField()
|
||||
this._scriptFields?.updateComplete.then(() =>
|
||||
this._scriptFields?.focusLastField()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -73,8 +73,8 @@ class HaPanelDevService extends LitElement {
|
|||
data: {},
|
||||
};
|
||||
if (this._yamlMode) {
|
||||
this.updateComplete.then(
|
||||
() => this._yamlEditor?.setValue(this._serviceData)
|
||||
this.updateComplete.then(() =>
|
||||
this._yamlEditor?.setValue(this._serviceData)
|
||||
);
|
||||
}
|
||||
} else if (!this._serviceData?.service) {
|
||||
|
@ -86,8 +86,8 @@ class HaPanelDevService extends LitElement {
|
|||
data: {},
|
||||
};
|
||||
if (this._yamlMode) {
|
||||
this.updateComplete.then(
|
||||
() => this._yamlEditor?.setValue(this._serviceData)
|
||||
this.updateComplete.then(() =>
|
||||
this._yamlEditor?.setValue(this._serviceData)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -152,8 +152,9 @@ export class HuiDialogEditCard
|
|||
if (this._cardConfig && this._cardConfig.type) {
|
||||
let cardName: string | undefined;
|
||||
if (isCustomType(this._cardConfig.type)) {
|
||||
cardName = getCustomCardEntry(stripCustomPrefix(this._cardConfig.type))
|
||||
?.name;
|
||||
cardName = getCustomCardEntry(
|
||||
stripCustomPrefix(this._cardConfig.type)
|
||||
)?.name;
|
||||
// Trim names that end in " Card" so as not to redundantly duplicate it
|
||||
if (cardName?.toLowerCase().endsWith(" card")) {
|
||||
cardName = cardName.substring(0, cardName.length - 5);
|
||||
|
|
|
@ -58,8 +58,8 @@ export class HuiClimateHvacModesCardFeatureEditor
|
|||
select: {
|
||||
multiple: true,
|
||||
mode: "list",
|
||||
options: HVAC_MODES.filter(
|
||||
(mode) => stateObj?.attributes.hvac_modes?.includes(mode)
|
||||
options: HVAC_MODES.filter((mode) =>
|
||||
stateObj?.attributes.hvac_modes?.includes(mode)
|
||||
).map((mode) => ({
|
||||
value: mode,
|
||||
label: stateObj ? formatEntityState(stateObj, mode) : mode,
|
||||
|
|
|
@ -252,11 +252,10 @@ export class HuiStatisticsGraphCardEditor
|
|||
);
|
||||
const configured_stat_types = this._config!.stat_types
|
||||
? ensureArray(this._config.stat_types)
|
||||
: stat_types.filter(
|
||||
(stat_type) =>
|
||||
this._metaDatas?.some((metaData) =>
|
||||
statisticsMetaHasType(metaData, stat_type)
|
||||
)
|
||||
: stat_types.filter((stat_type) =>
|
||||
this._metaDatas?.some((metaData) =>
|
||||
statisticsMetaHasType(metaData, stat_type)
|
||||
)
|
||||
);
|
||||
const data = {
|
||||
chart_type: "line",
|
||||
|
|
|
@ -38,8 +38,8 @@ export class HuiWaterHeaterOperationModesCardFeatureEditor
|
|||
select: {
|
||||
multiple: true,
|
||||
mode: "list",
|
||||
options: OPERATION_MODES.filter(
|
||||
(mode) => stateObj?.attributes.operation_list?.includes(mode)
|
||||
options: OPERATION_MODES.filter((mode) =>
|
||||
stateObj?.attributes.operation_list?.includes(mode)
|
||||
).map((mode) => ({
|
||||
value: mode,
|
||||
label: stateObj ? formatEntityState(stateObj, mode) : mode,
|
||||
|
|
|
@ -4,10 +4,9 @@ export function computeCssVariable(
|
|||
if (Array.isArray(props)) {
|
||||
return props
|
||||
.reverse()
|
||||
.reduce<string | undefined>(
|
||||
(str, variable) => `var(${variable}${str ? `, ${str}` : ""})`,
|
||||
undefined
|
||||
);
|
||||
.reduce<
|
||||
string | undefined
|
||||
>((str, variable) => `var(${variable}${str ? `, ${str}` : ""})`, undefined);
|
||||
}
|
||||
return `var(${props})`;
|
||||
}
|
||||
|
|
10
yarn.lock
10
yarn.lock
|
@ -9644,7 +9644,7 @@ __metadata:
|
|||
object-hash: "npm:3.0.0"
|
||||
open: "npm:10.0.3"
|
||||
pinst: "npm:3.0.0"
|
||||
prettier: "npm:3.1.1"
|
||||
prettier: "npm:3.2.0"
|
||||
proxy-polyfill: "npm:0.3.2"
|
||||
punycode: "npm:2.3.1"
|
||||
qr-scanner: "npm:1.4.2"
|
||||
|
@ -13100,12 +13100,12 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"prettier@npm:3.1.1":
|
||||
version: 3.1.1
|
||||
resolution: "prettier@npm:3.1.1"
|
||||
"prettier@npm:3.2.0":
|
||||
version: 3.2.0
|
||||
resolution: "prettier@npm:3.2.0"
|
||||
bin:
|
||||
prettier: bin/prettier.cjs
|
||||
checksum: 26a249f321b97d26c04483f1bf2eeb22e082a76f4222a2c922bebdc60111691aad4ec3979610e83942e0b956058ec361d9e9c81c185172264eb6db9aa678082b
|
||||
checksum: eb2eb63038ca9aaf86bda7dc49b879a278bc8344d28236fef08a8f185e8ce721a40155acc4a494e8f91ecbcdd9a132fd326516f791c61cbfa9037c1f74d6d029
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
|
Loading…
Reference in New Issue