mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
20230224.0 (#15588)
This commit is contained in:
commit
df8f46388f
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "home-assistant-frontend"
|
name = "home-assistant-frontend"
|
||||||
version = "20230223.0"
|
version = "20230224.0"
|
||||||
license = {text = "Apache-2.0"}
|
license = {text = "Apache-2.0"}
|
||||||
description = "The Home Assistant frontend"
|
description = "The Home Assistant frontend"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
@ -81,7 +81,7 @@ export class MoreInfoDialog extends LitElement {
|
|||||||
|
|
||||||
@state() private _childView?: ChildView;
|
@state() private _childView?: ChildView;
|
||||||
|
|
||||||
@state() private _entry?: ExtEntityRegistryEntry;
|
@state() private _entry?: ExtEntityRegistryEntry | null;
|
||||||
|
|
||||||
public showDialog(params: MoreInfoDialogParams) {
|
public showDialog(params: MoreInfoDialogParams) {
|
||||||
this._entityId = params.entityId;
|
this._entityId = params.entityId;
|
||||||
@ -99,10 +99,14 @@ export class MoreInfoDialog extends LitElement {
|
|||||||
if (!this._entityId) {
|
if (!this._entityId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this._entry = await getExtendedEntityRegistryEntry(
|
try {
|
||||||
this.hass,
|
this._entry = await getExtendedEntityRegistryEntry(
|
||||||
this._entityId
|
this.hass,
|
||||||
);
|
this._entityId
|
||||||
|
);
|
||||||
|
} catch (e) {
|
||||||
|
this._entry = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public closeDialog() {
|
public closeDialog() {
|
||||||
|
@ -327,16 +327,21 @@ class HaConfigHardware extends SubscribeMixin(LitElement) {
|
|||||||
: ""}
|
: ""}
|
||||||
</mwc-list>
|
</mwc-list>
|
||||||
</div>
|
</div>
|
||||||
${boardConfigEntries.length
|
${boardConfigEntries.length ||
|
||||||
|
isComponentLoaded(this.hass, "hassio")
|
||||||
? html`<div class="card-actions">
|
? html`<div class="card-actions">
|
||||||
<mwc-button
|
${boardConfigEntries.length
|
||||||
.entry=${boardConfigEntries[0]}
|
? html`
|
||||||
@click=${this._openOptionsFlow}
|
<mwc-button
|
||||||
>
|
.entry=${boardConfigEntries[0]}
|
||||||
${this.hass.localize(
|
@click=${this._openOptionsFlow}
|
||||||
"ui.panel.config.hardware.configure"
|
>
|
||||||
)}
|
${this.hass.localize(
|
||||||
</mwc-button>
|
"ui.panel.config.hardware.configure"
|
||||||
|
)}
|
||||||
|
</mwc-button>
|
||||||
|
`
|
||||||
|
: null}
|
||||||
${isComponentLoaded(this.hass, "hassio")
|
${isComponentLoaded(this.hass, "hassio")
|
||||||
? html`
|
? html`
|
||||||
<mwc-button @click=${this._openHardware}>
|
<mwc-button @click=${this._openHardware}>
|
||||||
|
@ -197,9 +197,10 @@ export const connectionMixin = <T extends Constructor<HassBaseEl>>(
|
|||||||
area_id: entity.ai,
|
area_id: entity.ai,
|
||||||
translation_key: entity.tk,
|
translation_key: entity.tk,
|
||||||
platform: entity.pl,
|
platform: entity.pl,
|
||||||
entity_category: entity.ec
|
entity_category:
|
||||||
? entityReg.entity_categories[entity.ec]
|
entity.ec !== undefined
|
||||||
: undefined,
|
? entityReg.entity_categories[entity.ec]
|
||||||
|
: undefined,
|
||||||
name: entity.en,
|
name: entity.en,
|
||||||
hidden: entity.hb,
|
hidden: entity.hb,
|
||||||
display_precision: entity.dp,
|
display_precision: entity.dp,
|
||||||
|
@ -4157,12 +4157,12 @@ __metadata:
|
|||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@types/glob@npm:^8":
|
"@types/glob@npm:^8":
|
||||||
version: 8.0.1
|
version: 8.1.0
|
||||||
resolution: "@types/glob@npm:8.0.1"
|
resolution: "@types/glob@npm:8.1.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/minimatch": ^5.1.2
|
"@types/minimatch": ^5.1.2
|
||||||
"@types/node": "*"
|
"@types/node": "*"
|
||||||
checksum: 98f3d0403c09638348a2f3b30aac2a3d6bdc306bce3ceb868f4794fef4f02727ccdf0dab0c7b7d65fd38a1afa1e48f02de56d29d2babe94ee9b204ca54acb31f
|
checksum: 9101f3a9061e40137190f70626aa0e202369b5ec4012c3fabe6f5d229cce04772db9a94fa5a0eb39655e2e4ad105c38afbb4af56a56c0996a8c7d4fc72350e3d
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user