mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
20230606.0 (#16798)
This commit is contained in:
commit
e3ee8f307a
@ -156,7 +156,7 @@
|
|||||||
"@babel/preset-typescript": "7.21.5",
|
"@babel/preset-typescript": "7.21.5",
|
||||||
"@koa/cors": "4.0.0",
|
"@koa/cors": "4.0.0",
|
||||||
"@octokit/auth-oauth-device": "4.0.4",
|
"@octokit/auth-oauth-device": "4.0.4",
|
||||||
"@octokit/plugin-retry": "4.1.5",
|
"@octokit/plugin-retry": "4.1.6",
|
||||||
"@octokit/rest": "19.0.11",
|
"@octokit/rest": "19.0.11",
|
||||||
"@open-wc/dev-server-hmr": "0.1.4",
|
"@open-wc/dev-server-hmr": "0.1.4",
|
||||||
"@rollup/plugin-babel": "6.0.3",
|
"@rollup/plugin-babel": "6.0.3",
|
||||||
|
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "home-assistant-frontend"
|
name = "home-assistant-frontend"
|
||||||
version = "20230605.0"
|
version = "20230606.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"
|
||||||
|
@ -38,6 +38,31 @@ export class StateBadge extends LitElement {
|
|||||||
|
|
||||||
@state() private _iconStyle: { [name: string]: string | undefined } = {};
|
@state() private _iconStyle: { [name: string]: string | undefined } = {};
|
||||||
|
|
||||||
|
connectedCallback(): void {
|
||||||
|
super.connectedCallback();
|
||||||
|
if (
|
||||||
|
this.hasUpdated &&
|
||||||
|
this.overrideImage === undefined &&
|
||||||
|
(this.stateObj?.attributes.entity_picture ||
|
||||||
|
this.stateObj?.attributes.entity_picture_local)
|
||||||
|
) {
|
||||||
|
// Update image on connect, so we get new auth token
|
||||||
|
this.requestUpdate("stateObj");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
disconnectedCallback() {
|
||||||
|
super.disconnectedCallback();
|
||||||
|
if (
|
||||||
|
this.overrideImage === undefined &&
|
||||||
|
(this.stateObj?.attributes.entity_picture ||
|
||||||
|
this.stateObj?.attributes.entity_picture_local)
|
||||||
|
) {
|
||||||
|
// Clear image on disconnect so we don't fetch with old auth when we reconnect
|
||||||
|
this.style.backgroundImage = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private get _stateColor() {
|
private get _stateColor() {
|
||||||
const domain = this.stateObj
|
const domain = this.stateObj
|
||||||
? computeStateDomain(this.stateObj)
|
? computeStateDomain(this.stateObj)
|
||||||
|
@ -195,7 +195,7 @@ class MoreInfoCover extends LitElement {
|
|||||||
<ha-icon-button
|
<ha-icon-button
|
||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
`ui.dialogs.more_info_control.cover.switch_mode.${
|
`ui.dialogs.more_info_control.cover.switch_mode.${
|
||||||
this._mode || "position"
|
this._mode === "position" ? "button" : "position"
|
||||||
}`
|
}`
|
||||||
)}
|
)}
|
||||||
.path=${this._mode === "position"
|
.path=${this._mode === "position"
|
||||||
|
@ -192,7 +192,8 @@ export class MoreInfoHistory extends LitElement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!isComponentLoaded(this.hass, "history") || this._subscribed) {
|
|
||||||
|
if (!isComponentLoaded(this.hass, "history")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this._subscribed) {
|
if (this._subscribed) {
|
||||||
|
@ -224,8 +224,12 @@ export class HaConfigDeviceDashboard extends LitElement {
|
|||||||
this.hass,
|
this.hass,
|
||||||
deviceEntityLookup[device.id]
|
deviceEntityLookup[device.id]
|
||||||
),
|
),
|
||||||
model: device.model || "<unknown>",
|
model:
|
||||||
manufacturer: device.manufacturer || "<unknown>",
|
device.model ||
|
||||||
|
`<${localize("ui.panel.config.devices.data_table.unknown")}>`,
|
||||||
|
manufacturer:
|
||||||
|
device.manufacturer ||
|
||||||
|
`<${localize("ui.panel.config.devices.data_table.unknown")}>`,
|
||||||
area:
|
area:
|
||||||
device.area_id && areaLookup[device.area_id]
|
device.area_id && areaLookup[device.area_id]
|
||||||
? areaLookup[device.area_id].name
|
? areaLookup[device.area_id].name
|
||||||
|
@ -71,33 +71,43 @@ class HaPanelDevStatistics extends SubscribeMixin(LitElement) {
|
|||||||
private _columns = memoizeOne(
|
private _columns = memoizeOne(
|
||||||
(localize): DataTableColumnContainer => ({
|
(localize): DataTableColumnContainer => ({
|
||||||
displayName: {
|
displayName: {
|
||||||
title: "Name",
|
title: localize(
|
||||||
|
"ui.panel.developer-tools.tabs.statistics.data_table.name"
|
||||||
|
),
|
||||||
sortable: true,
|
sortable: true,
|
||||||
filterable: true,
|
filterable: true,
|
||||||
grows: true,
|
grows: true,
|
||||||
},
|
},
|
||||||
statistic_id: {
|
statistic_id: {
|
||||||
title: "Statistic id",
|
title: localize(
|
||||||
|
"ui.panel.developer-tools.tabs.statistics.data_table.statistic_id"
|
||||||
|
),
|
||||||
sortable: true,
|
sortable: true,
|
||||||
filterable: true,
|
filterable: true,
|
||||||
hidden: this.narrow,
|
hidden: this.narrow,
|
||||||
width: "20%",
|
width: "20%",
|
||||||
},
|
},
|
||||||
statistics_unit_of_measurement: {
|
statistics_unit_of_measurement: {
|
||||||
title: "Statistics unit",
|
title: localize(
|
||||||
|
"ui.panel.developer-tools.tabs.statistics.data_table.statistics_unit"
|
||||||
|
),
|
||||||
sortable: true,
|
sortable: true,
|
||||||
filterable: true,
|
filterable: true,
|
||||||
width: "10%",
|
width: "10%",
|
||||||
forceLTR: true,
|
forceLTR: true,
|
||||||
},
|
},
|
||||||
source: {
|
source: {
|
||||||
title: "Source",
|
title: localize(
|
||||||
|
"ui.panel.developer-tools.tabs.statistics.data_table.source"
|
||||||
|
),
|
||||||
sortable: true,
|
sortable: true,
|
||||||
filterable: true,
|
filterable: true,
|
||||||
width: "10%",
|
width: "10%",
|
||||||
},
|
},
|
||||||
issues: {
|
issues: {
|
||||||
title: "Issue",
|
title: localize(
|
||||||
|
"ui.panel.developer-tools.tabs.statistics.data_table.issue"
|
||||||
|
),
|
||||||
sortable: true,
|
sortable: true,
|
||||||
filterable: true,
|
filterable: true,
|
||||||
direction: "asc",
|
direction: "asc",
|
||||||
|
@ -802,7 +802,7 @@ class HUIRoot extends LitElement {
|
|||||||
}
|
}
|
||||||
if (this._yamlMode) {
|
if (this._yamlMode) {
|
||||||
showAlertDialog(this, {
|
showAlertDialog(this, {
|
||||||
text: "The edit UI is not available when in YAML mode.",
|
text: this.hass!.localize("ui.panel.lovelace.editor.yaml_unsupported"),
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -3062,7 +3062,8 @@
|
|||||||
"battery": "Battery",
|
"battery": "Battery",
|
||||||
"disabled_by": "Disabled",
|
"disabled_by": "Disabled",
|
||||||
"no_devices": "No devices",
|
"no_devices": "No devices",
|
||||||
"no_integration": "No integration"
|
"no_integration": "No integration",
|
||||||
|
"unknown": "unknown"
|
||||||
},
|
},
|
||||||
"delete": "Delete",
|
"delete": "Delete",
|
||||||
"confirm_delete": "Are you sure you want to delete this device?",
|
"confirm_delete": "Are you sure you want to delete this device?",
|
||||||
@ -4284,6 +4285,7 @@
|
|||||||
},
|
},
|
||||||
"editor": {
|
"editor": {
|
||||||
"header": "Edit UI",
|
"header": "Edit UI",
|
||||||
|
"yaml_unsupported": "The edit UI is not available when in YAML mode.",
|
||||||
"menu": {
|
"menu": {
|
||||||
"open": "Open dashboard menu",
|
"open": "Open dashboard menu",
|
||||||
"raw_editor": "Raw configuration editor",
|
"raw_editor": "Raw configuration editor",
|
||||||
@ -5269,7 +5271,14 @@
|
|||||||
"clear": "Delete all old statistic data for this entity"
|
"clear": "Delete all old statistic data for this entity"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"adjust_sum": "Adjust sum"
|
"adjust_sum": "Adjust sum",
|
||||||
|
"data_table": {
|
||||||
|
"name": "Name",
|
||||||
|
"statistic_id": "Statistic id",
|
||||||
|
"statistics_unit": "Statistics unit",
|
||||||
|
"source": "Source",
|
||||||
|
"issue": "Issue"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"yaml": {
|
"yaml": {
|
||||||
"title": "YAML",
|
"title": "YAML",
|
||||||
|
10
yarn.lock
10
yarn.lock
@ -3349,15 +3349,15 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@octokit/plugin-retry@npm:4.1.5":
|
"@octokit/plugin-retry@npm:4.1.6":
|
||||||
version: 4.1.5
|
version: 4.1.6
|
||||||
resolution: "@octokit/plugin-retry@npm:4.1.5"
|
resolution: "@octokit/plugin-retry@npm:4.1.6"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@octokit/types": ^9.0.0
|
"@octokit/types": ^9.0.0
|
||||||
bottleneck: ^2.15.3
|
bottleneck: ^2.15.3
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
"@octokit/core": ">=3"
|
"@octokit/core": ">=3"
|
||||||
checksum: 37272a0dd2fea5025797bb0f6812899c048468b3ef35c0413154230ef0d5c3e323a76bb9eb971ea5ba498f68407711507336852783443397a185a9a75b28b06c
|
checksum: 9bebaf7fc9c34683d7e97c0398ab9f5a164ce8770e92e8b8a65ed8e85ee3b0fddc5c72dfb18da112e2f643434d217ec7092f57496808c4ae6c2a824f42ae1ccf
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@ -9669,7 +9669,7 @@ __metadata:
|
|||||||
"@mdi/js": 7.2.96
|
"@mdi/js": 7.2.96
|
||||||
"@mdi/svg": 7.2.96
|
"@mdi/svg": 7.2.96
|
||||||
"@octokit/auth-oauth-device": 4.0.4
|
"@octokit/auth-oauth-device": 4.0.4
|
||||||
"@octokit/plugin-retry": 4.1.5
|
"@octokit/plugin-retry": 4.1.6
|
||||||
"@octokit/rest": 19.0.11
|
"@octokit/rest": 19.0.11
|
||||||
"@open-wc/dev-server-hmr": 0.1.4
|
"@open-wc/dev-server-hmr": 0.1.4
|
||||||
"@polymer/app-layout": 3.1.0
|
"@polymer/app-layout": 3.1.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user