update url of pipline-debug (#16066)

This commit is contained in:
Bram Kragten 2023-04-05 12:29:13 +02:00 committed by GitHub
parent 6d29b1cfb8
commit c640d9edf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 6 deletions

View File

@ -353,12 +353,9 @@ class HaPanelConfig extends HassRouterPage {
tag: "ha-config-areas",
load: () => import("./areas/ha-config-areas"),
},
voice_assistant: {
tag: "assist-pipeline-debug",
load: () =>
import(
"./integrations/integration-panels/voice_assistant/assist/assist-pipeline-debug"
),
"voice-assistants": {
tag: "ha-config-voice-assistants",
load: () => import("./voice-assistants/ha-config-voice-assistants"),
},
automation: {
tag: "ha-config-automation",

View File

@ -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;
}
}