mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
update url of pipline-debug (#16066)
This commit is contained in:
parent
6d29b1cfb8
commit
c640d9edf2
@ -353,12 +353,9 @@ class HaPanelConfig extends HassRouterPage {
|
|||||||
tag: "ha-config-areas",
|
tag: "ha-config-areas",
|
||||||
load: () => import("./areas/ha-config-areas"),
|
load: () => import("./areas/ha-config-areas"),
|
||||||
},
|
},
|
||||||
voice_assistant: {
|
"voice-assistants": {
|
||||||
tag: "assist-pipeline-debug",
|
tag: "ha-config-voice-assistants",
|
||||||
load: () =>
|
load: () => import("./voice-assistants/ha-config-voice-assistants"),
|
||||||
import(
|
|
||||||
"./integrations/integration-panels/voice_assistant/assist/assist-pipeline-debug"
|
|
||||||
),
|
|
||||||
},
|
},
|
||||||
automation: {
|
automation: {
|
||||||
tag: "ha-config-automation",
|
tag: "ha-config-automation",
|
||||||
|
@ -0,0 +1,41 @@
|
|||||||
|
import { customElement, property } from "lit/decorators";
|
||||||
|
import {
|
||||||
|
HassRouterPage,
|
||||||
|
RouterOptions,
|
||||||
|
} from "../../../layouts/hass-router-page";
|
||||||
|
import { HomeAssistant } from "../../../types";
|
||||||
|
|
||||||
|
@customElement("ha-config-voice-assistants")
|
||||||
|
class HaConfigVoiceAssistants extends HassRouterPage {
|
||||||
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
|
@property() public narrow!: boolean;
|
||||||
|
|
||||||
|
@property() public isWide!: boolean;
|
||||||
|
|
||||||
|
protected routerOptions: RouterOptions = {
|
||||||
|
defaultPage: "debug",
|
||||||
|
routes: {
|
||||||
|
debug: {
|
||||||
|
tag: "assist-pipeline-debug",
|
||||||
|
load: () =>
|
||||||
|
import(
|
||||||
|
"../integrations/integration-panels/voice_assistant/assist/assist-pipeline-debug"
|
||||||
|
),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
protected updatePageEl(pageEl) {
|
||||||
|
pageEl.hass = this.hass;
|
||||||
|
pageEl.narrow = this.narrow;
|
||||||
|
pageEl.isWide = this.isWide;
|
||||||
|
pageEl.route = this.routeTail;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
interface HTMLElementTagNameMap {
|
||||||
|
"ha-config-voice-assistants": HaConfigVoiceAssistants;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user