1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-02-15 07:25:54 +00:00
Files
frontend/src/panels/developer-tools/debug/developer-tools-debug.ts
Steve Repsher adb851a2b4 Fix unclosed HTML tags (#19343)
* Fix unclosed HTML tags

* Add missing import and remove unused class for debug tools

* Remove div from debug page
2024-01-10 10:53:03 +01:00

50 lines
1.2 KiB
TypeScript

import { LitElement, css, html } from "lit";
import { customElement, property } from "lit/decorators";
import "../../../components/ha-card";
import { SubscribeMixin } from "../../../mixins/subscribe-mixin";
import { haStyle } from "../../../resources/styles";
import { HomeAssistant } from "../../../types";
import "./ha-debug-connection-row";
@customElement("developer-tools-debug")
class HaPanelDevDebug extends SubscribeMixin(LitElement) {
@property({ attribute: false }) public hass!: HomeAssistant;
@property({ type: Boolean }) public narrow!: boolean;
protected render() {
return html`
<div class="content">
<ha-card
.header=${this.hass.localize(
"ui.panel.developer-tools.tabs.debug.title"
)}
>
<ha-debug-connection-row
.hass=${this.hass}
.narrow=${this.narrow}
></ha-debug-connection-row>
</ha-card>
</div>
`;
}
static styles = [
haStyle,
css`
.content {
padding: 28px 20px 16px;
display: block;
max-width: 600px;
margin: 0 auto;
}
`,
];
}
declare global {
interface HTMLElementTagNameMap {
"developer-tools-debug": HaPanelDevDebug;
}
}