mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-03 14:37:47 +00:00
Compare commits
15 Commits
20250731.0
...
dev
Author | SHA1 | Date | |
---|---|---|---|
![]() |
343aa40bc8 | ||
![]() |
6022f9a77e | ||
![]() |
bd9de0680e | ||
![]() |
b8000d5bc1 | ||
![]() |
c6efa1127f | ||
![]() |
688a3d91d3 | ||
![]() |
68151a2a70 | ||
![]() |
c2ca556151 | ||
![]() |
df86b27af4 | ||
![]() |
eba1f401cc | ||
![]() |
19c2f9c9e8 | ||
![]() |
4250447d14 | ||
![]() |
4666197f28 | ||
![]() |
a5ca36c93f | ||
![]() |
a88950e16c |
8
CODEOWNERS
Normal file
8
CODEOWNERS
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# People marked here will be automatically requested for a review
|
||||||
|
# when the code that they own is touched.
|
||||||
|
# https://github.com/blog/2392-introducing-code-owners
|
||||||
|
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
|
||||||
|
|
||||||
|
# Part of the frontend that mobile developper should review
|
||||||
|
src/external_app/ @bgoncal @TimoPtr
|
||||||
|
test/external_app/ @bgoncal @TimoPtr
|
@ -173,7 +173,7 @@
|
|||||||
"@types/leaflet-draw": "1.0.12",
|
"@types/leaflet-draw": "1.0.12",
|
||||||
"@types/leaflet.markercluster": "1.5.5",
|
"@types/leaflet.markercluster": "1.5.5",
|
||||||
"@types/lodash.merge": "4.6.9",
|
"@types/lodash.merge": "4.6.9",
|
||||||
"@types/luxon": "3.6.2",
|
"@types/luxon": "3.7.1",
|
||||||
"@types/mocha": "10.0.10",
|
"@types/mocha": "10.0.10",
|
||||||
"@types/qrcode": "1.5.5",
|
"@types/qrcode": "1.5.5",
|
||||||
"@types/sortablejs": "1.15.8",
|
"@types/sortablejs": "1.15.8",
|
||||||
|
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "home-assistant-frontend"
|
name = "home-assistant-frontend"
|
||||||
version = "20250731.0"
|
version = "20250730.0"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
license-files = ["LICENSE*"]
|
license-files = ["LICENSE*"]
|
||||||
description = "The Home Assistant frontend"
|
description = "The Home Assistant frontend"
|
||||||
|
@ -5,8 +5,8 @@ import { customElement, property, state } from "lit/decorators";
|
|||||||
import { fireEvent } from "../common/dom/fire_event";
|
import { fireEvent } from "../common/dom/fire_event";
|
||||||
import { stopPropagation } from "../common/dom/stop_propagation";
|
import { stopPropagation } from "../common/dom/stop_propagation";
|
||||||
import { debounce } from "../common/util/debounce";
|
import { debounce } from "../common/util/debounce";
|
||||||
import type { ConfigEntry } from "../data/config_entries";
|
import type { ConfigEntry, SubEntry } from "../data/config_entries";
|
||||||
import { getConfigEntry } from "../data/config_entries";
|
import { getConfigEntry, getSubEntries } from "../data/config_entries";
|
||||||
import type { Agent } from "../data/conversation";
|
import type { Agent } from "../data/conversation";
|
||||||
import { listAgents } from "../data/conversation";
|
import { listAgents } from "../data/conversation";
|
||||||
import { fetchIntegrationManifest } from "../data/integration";
|
import { fetchIntegrationManifest } from "../data/integration";
|
||||||
@ -16,6 +16,7 @@ import "./ha-list-item";
|
|||||||
import "./ha-select";
|
import "./ha-select";
|
||||||
import type { HaSelect } from "./ha-select";
|
import type { HaSelect } from "./ha-select";
|
||||||
import { getExtendedEntityRegistryEntry } from "../data/entity_registry";
|
import { getExtendedEntityRegistryEntry } from "../data/entity_registry";
|
||||||
|
import { showSubConfigFlowDialog } from "../dialogs/config-flow/show-dialog-sub-config-flow";
|
||||||
|
|
||||||
const NONE = "__NONE_OPTION__";
|
const NONE = "__NONE_OPTION__";
|
||||||
|
|
||||||
@ -37,6 +38,8 @@ export class HaConversationAgentPicker extends LitElement {
|
|||||||
|
|
||||||
@state() private _configEntry?: ConfigEntry;
|
@state() private _configEntry?: ConfigEntry;
|
||||||
|
|
||||||
|
@state() private _subConfigEntry?: SubEntry;
|
||||||
|
|
||||||
protected render() {
|
protected render() {
|
||||||
if (!this._agents) {
|
if (!this._agents) {
|
||||||
return nothing;
|
return nothing;
|
||||||
@ -101,7 +104,11 @@ export class HaConversationAgentPicker extends LitElement {
|
|||||||
${agent.name}
|
${agent.name}
|
||||||
</ha-list-item>`
|
</ha-list-item>`
|
||||||
)}</ha-select
|
)}</ha-select
|
||||||
>${this._configEntry?.supports_options
|
>${(this._subConfigEntry &&
|
||||||
|
this._configEntry?.supported_subentry_types[
|
||||||
|
this._subConfigEntry.subentry_type
|
||||||
|
]?.supports_reconfigure) ||
|
||||||
|
this._configEntry?.supports_options
|
||||||
? html`<ha-icon-button
|
? html`<ha-icon-button
|
||||||
.path=${mdiCog}
|
.path=${mdiCog}
|
||||||
@click=${this._openOptionsFlow}
|
@click=${this._openOptionsFlow}
|
||||||
@ -142,8 +149,17 @@ export class HaConversationAgentPicker extends LitElement {
|
|||||||
this._configEntry = (
|
this._configEntry = (
|
||||||
await getConfigEntry(this.hass, regEntry.config_entry_id)
|
await getConfigEntry(this.hass, regEntry.config_entry_id)
|
||||||
).config_entry;
|
).config_entry;
|
||||||
|
|
||||||
|
if (!regEntry.config_subentry_id) {
|
||||||
|
this._subConfigEntry = undefined;
|
||||||
|
} else {
|
||||||
|
this._subConfigEntry = (
|
||||||
|
await getSubEntries(this.hass, regEntry.config_entry_id)
|
||||||
|
).find((entry) => entry.subentry_id === regEntry.config_subentry_id);
|
||||||
|
}
|
||||||
} catch (_err) {
|
} catch (_err) {
|
||||||
this._configEntry = undefined;
|
this._configEntry = undefined;
|
||||||
|
this._subConfigEntry = undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -182,6 +198,25 @@ export class HaConversationAgentPicker extends LitElement {
|
|||||||
if (!this._configEntry) {
|
if (!this._configEntry) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
this._subConfigEntry &&
|
||||||
|
this._configEntry.supported_subentry_types[
|
||||||
|
this._subConfigEntry.subentry_type
|
||||||
|
]?.supports_reconfigure
|
||||||
|
) {
|
||||||
|
showSubConfigFlowDialog(
|
||||||
|
this,
|
||||||
|
this._configEntry,
|
||||||
|
this._subConfigEntry.subentry_type,
|
||||||
|
{
|
||||||
|
startFlowHandler: this._configEntry.entry_id,
|
||||||
|
subEntryId: this._subConfigEntry.subentry_id,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
showOptionsFlowDialog(this, this._configEntry, {
|
showOptionsFlowDialog(this, this._configEntry, {
|
||||||
manifest: await fetchIntegrationManifest(
|
manifest: await fetchIntegrationManifest(
|
||||||
this.hass,
|
this.hass,
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import { formatInTimeZone, toDate } from "date-fns-tz";
|
|
||||||
import {
|
import {
|
||||||
addDays,
|
addDays,
|
||||||
addHours,
|
addHours,
|
||||||
@ -6,6 +5,7 @@ import {
|
|||||||
differenceInMilliseconds,
|
differenceInMilliseconds,
|
||||||
startOfHour,
|
startOfHour,
|
||||||
} from "date-fns";
|
} from "date-fns";
|
||||||
|
import { formatInTimeZone, toDate } from "date-fns-tz";
|
||||||
import type { HassEntity } from "home-assistant-js-websocket";
|
import type { HassEntity } from "home-assistant-js-websocket";
|
||||||
import type { CSSResultGroup } from "lit";
|
import type { CSSResultGroup } from "lit";
|
||||||
import { LitElement, css, html, nothing } from "lit";
|
import { LitElement, css, html, nothing } from "lit";
|
||||||
@ -18,11 +18,11 @@ import { supportsFeature } from "../../common/entity/supports-feature";
|
|||||||
import { isDate } from "../../common/string/is_date";
|
import { isDate } from "../../common/string/is_date";
|
||||||
import "../../components/entity/ha-entity-picker";
|
import "../../components/entity/ha-entity-picker";
|
||||||
import "../../components/ha-alert";
|
import "../../components/ha-alert";
|
||||||
|
import "../../components/ha-button";
|
||||||
import "../../components/ha-date-input";
|
import "../../components/ha-date-input";
|
||||||
import { createCloseHeading } from "../../components/ha-dialog";
|
import { createCloseHeading } from "../../components/ha-dialog";
|
||||||
import "../../components/ha-formfield";
|
import "../../components/ha-formfield";
|
||||||
import "../../components/ha-switch";
|
import "../../components/ha-switch";
|
||||||
import "../../components/ha-button";
|
|
||||||
import "../../components/ha-textarea";
|
import "../../components/ha-textarea";
|
||||||
import "../../components/ha-textfield";
|
import "../../components/ha-textfield";
|
||||||
import "../../components/ha-time-input";
|
import "../../components/ha-time-input";
|
||||||
@ -282,6 +282,7 @@ class DialogCalendarEventEditor extends LitElement {
|
|||||||
? html`
|
? html`
|
||||||
<ha-button
|
<ha-button
|
||||||
slot="secondaryAction"
|
slot="secondaryAction"
|
||||||
|
appearance="plain"
|
||||||
variant="danger"
|
variant="danger"
|
||||||
@click=${this._deleteEvent}
|
@click=${this._deleteEvent}
|
||||||
.disabled=${this._submitting}
|
.disabled=${this._submitting}
|
||||||
|
@ -260,12 +260,14 @@ class DialogAutomationSave extends LitElement implements HassDialog {
|
|||||||
.path=${mdiClose}
|
.path=${mdiClose}
|
||||||
></ha-icon-button>
|
></ha-icon-button>
|
||||||
<span slot="title">${this._params.title || title}</span>
|
<span slot="title">${this._params.title || title}</span>
|
||||||
<ha-suggest-with-ai-button
|
${this._params.hideInputs
|
||||||
slot="actionItems"
|
? nothing
|
||||||
.hass=${this.hass}
|
: html` <ha-suggest-with-ai-button
|
||||||
.generateTask=${this._generateTask}
|
slot="actionItems"
|
||||||
@suggestion=${this._handleSuggestion}
|
.hass=${this.hass}
|
||||||
></ha-suggest-with-ai-button>
|
.generateTask=${this._generateTask}
|
||||||
|
@suggestion=${this._handleSuggestion}
|
||||||
|
></ha-suggest-with-ai-button>`}
|
||||||
</ha-dialog-header>
|
</ha-dialog-header>
|
||||||
${this._error
|
${this._error
|
||||||
? html`<ha-alert alert-type="error"
|
? html`<ha-alert alert-type="error"
|
||||||
|
@ -2,10 +2,10 @@ import type { CSSResultGroup } from "lit";
|
|||||||
import { css, html, LitElement, nothing } from "lit";
|
import { css, html, LitElement, nothing } from "lit";
|
||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
import { fireEvent } from "../../../../common/dom/fire_event";
|
import { fireEvent } from "../../../../common/dom/fire_event";
|
||||||
|
import "../../../../components/ha-alert";
|
||||||
import "../../../../components/ha-button";
|
import "../../../../components/ha-button";
|
||||||
import { createCloseHeading } from "../../../../components/ha-dialog";
|
import { createCloseHeading } from "../../../../components/ha-dialog";
|
||||||
import "../../../../components/ha-form/ha-form";
|
import "../../../../components/ha-form/ha-form";
|
||||||
import "../../../../components/ha-alert";
|
|
||||||
import type {
|
import type {
|
||||||
HaFormSchema,
|
HaFormSchema,
|
||||||
SchemaUnion,
|
SchemaUnion,
|
||||||
@ -91,6 +91,7 @@ class LocalBackupLocationDialog extends LitElement {
|
|||||||
</ha-alert>
|
</ha-alert>
|
||||||
<ha-button
|
<ha-button
|
||||||
slot="secondaryAction"
|
slot="secondaryAction"
|
||||||
|
appearance="plain"
|
||||||
@click=${this.closeDialog}
|
@click=${this.closeDialog}
|
||||||
dialogInitialFocus
|
dialogInitialFocus
|
||||||
>
|
>
|
||||||
|
@ -1442,10 +1442,9 @@ export class HaConfigDevicePage extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async _signUrl(ev) {
|
private async _signUrl(ev) {
|
||||||
const anchor = ev.currentTarget.closest("a");
|
|
||||||
const signedUrl = await getSignedPath(
|
const signedUrl = await getSignedPath(
|
||||||
this.hass,
|
this.hass,
|
||||||
anchor.getAttribute("href")
|
ev.currentTarget.getAttribute("href")
|
||||||
);
|
);
|
||||||
fileDownload(signedUrl.path);
|
fileDownload(signedUrl.path);
|
||||||
}
|
}
|
||||||
|
@ -3,16 +3,16 @@ import { html, LitElement, nothing } from "lit";
|
|||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
import { fireEvent } from "../../../../../common/dom/fire_event";
|
import { fireEvent } from "../../../../../common/dom/fire_event";
|
||||||
import { stopPropagation } from "../../../../../common/dom/stop_propagation";
|
import { stopPropagation } from "../../../../../common/dom/stop_propagation";
|
||||||
import type { HassDialog } from "../../../../../dialogs/make-dialog-manager";
|
|
||||||
import { changeZHANetworkChannel } from "../../../../../data/zha";
|
|
||||||
import { showAlertDialog } from "../../../../../dialogs/generic/show-dialog-box";
|
|
||||||
import { createCloseHeading } from "../../../../../components/ha-dialog";
|
|
||||||
import type { HomeAssistant } from "../../../../../types";
|
|
||||||
import "../../../../../components/buttons/ha-progress-button";
|
import "../../../../../components/buttons/ha-progress-button";
|
||||||
import "../../../../../components/ha-alert";
|
import "../../../../../components/ha-alert";
|
||||||
import "../../../../../components/ha-button";
|
import "../../../../../components/ha-button";
|
||||||
import "../../../../../components/ha-select";
|
import { createCloseHeading } from "../../../../../components/ha-dialog";
|
||||||
import "../../../../../components/ha-list-item";
|
import "../../../../../components/ha-list-item";
|
||||||
|
import "../../../../../components/ha-select";
|
||||||
|
import { changeZHANetworkChannel } from "../../../../../data/zha";
|
||||||
|
import { showAlertDialog } from "../../../../../dialogs/generic/show-dialog-box";
|
||||||
|
import type { HassDialog } from "../../../../../dialogs/make-dialog-manager";
|
||||||
|
import type { HomeAssistant } from "../../../../../types";
|
||||||
import type { ZHAChangeChannelDialogParams } from "./show-dialog-zha-change-channel";
|
import type { ZHAChangeChannelDialogParams } from "./show-dialog-zha-change-channel";
|
||||||
|
|
||||||
const VALID_CHANNELS = [
|
const VALID_CHANNELS = [
|
||||||
@ -128,6 +128,7 @@ class DialogZHAChangeChannel extends LitElement implements HassDialog {
|
|||||||
|
|
||||||
<ha-button
|
<ha-button
|
||||||
slot="secondaryAction"
|
slot="secondaryAction"
|
||||||
|
appearance="plain"
|
||||||
@click=${this.closeDialog}
|
@click=${this.closeDialog}
|
||||||
.disabled=${this._migrationInProgress}
|
.disabled=${this._migrationInProgress}
|
||||||
>${this.hass.localize("ui.common.cancel")}</ha-button
|
>${this.hass.localize("ui.common.cancel")}</ha-button
|
||||||
|
@ -1972,11 +1972,11 @@
|
|||||||
},
|
},
|
||||||
"google_home": {
|
"google_home": {
|
||||||
"header": "Share from Google Home",
|
"header": "Share from Google Home",
|
||||||
"step_1": "Find your device in the Google Home app. Tap the gear icon to open the device settings.",
|
"step_1": "Find your device in the Google Home app. Tap the gear icon to open the device settings, then tap on Device information.",
|
||||||
"step_2": "Tap {linked_matter_apps_services}.",
|
"step_2": "Tap {linked_matter_apps_services}.",
|
||||||
"step_3": "Tap {link_apps_services} and choose {home_assistant} from the list.",
|
"step_3": "Tap {link_apps_services} and choose {home_assistant} from the list.",
|
||||||
"linked_matter_apps_services": "Linked Matter apps and services",
|
"linked_matter_apps_services": "Linked Matter apps and services",
|
||||||
"link_apps_services": "Link apps & services",
|
"link_apps_services": "Link apps and services",
|
||||||
"no_home_assistant": "I can't find Home Assistant on the list",
|
"no_home_assistant": "I can't find Home Assistant on the list",
|
||||||
"redirect": "You are redirected to the Home Assistant app. Please follow the instructions."
|
"redirect": "You are redirected to the Home Assistant app. Please follow the instructions."
|
||||||
},
|
},
|
||||||
|
10
yarn.lock
10
yarn.lock
@ -4732,10 +4732,10 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@types/luxon@npm:3.6.2":
|
"@types/luxon@npm:3.7.1":
|
||||||
version: 3.6.2
|
version: 3.7.1
|
||||||
resolution: "@types/luxon@npm:3.6.2"
|
resolution: "@types/luxon@npm:3.7.1"
|
||||||
checksum: 10/73ca30059e0b1e352ce3a208837bc042e0bae9cf6e5b42f63de9ddfe15348a9e9bf9fcde3d4034038be24cb24adc579ae984cadff3bf70432e54fed1ad249d12
|
checksum: 10/c7bc164c278393ea0be938f986c74b4cddfab9013b1aff4495b016f771ded1d5b7b7b4825b2c7f0b8799edce19c5f531c28ff434ab3dedf994ac2d99a20fd4c4
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@ -9427,7 +9427,7 @@ __metadata:
|
|||||||
"@types/leaflet-draw": "npm:1.0.12"
|
"@types/leaflet-draw": "npm:1.0.12"
|
||||||
"@types/leaflet.markercluster": "npm:1.5.5"
|
"@types/leaflet.markercluster": "npm:1.5.5"
|
||||||
"@types/lodash.merge": "npm:4.6.9"
|
"@types/lodash.merge": "npm:4.6.9"
|
||||||
"@types/luxon": "npm:3.6.2"
|
"@types/luxon": "npm:3.7.1"
|
||||||
"@types/mocha": "npm:10.0.10"
|
"@types/mocha": "npm:10.0.10"
|
||||||
"@types/qrcode": "npm:1.5.5"
|
"@types/qrcode": "npm:1.5.5"
|
||||||
"@types/sortablejs": "npm:1.15.8"
|
"@types/sortablejs": "npm:1.15.8"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user