mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Fix unclosed HTML tags (#19343)
* Fix unclosed HTML tags * Add missing import and remove unused class for debug tools * Remove div from debug page
This commit is contained in:
parent
6ab5116c34
commit
adb851a2b4
@ -8,7 +8,7 @@ class HaLabel extends LitElement {
|
|||||||
<span class="label">
|
<span class="label">
|
||||||
<slot name="icon"></slot>
|
<slot name="icon"></slot>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</span>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -181,7 +181,7 @@ class DialogMQTTDeviceDebugInfo extends LitElement {
|
|||||||
{ n: topic.messages.length }
|
{ n: topic.messages.length }
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
</mqtt-rx-messages>
|
</mqtt-messages>
|
||||||
</li>
|
</li>
|
||||||
`
|
`
|
||||||
)}
|
)}
|
||||||
@ -204,7 +204,7 @@ class DialogMQTTDeviceDebugInfo extends LitElement {
|
|||||||
{ n: topic.messages.length }
|
{ n: topic.messages.length }
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
</mqtt-tx-messages>
|
</mqtt-messages>
|
||||||
</li>
|
</li>
|
||||||
`
|
`
|
||||||
)}
|
)}
|
||||||
|
@ -165,7 +165,7 @@ class HaPanelDevAssist extends SubscribeMixin(LitElement) {
|
|||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
"ui.panel.developer-tools.tabs.assist.download_results"
|
"ui.panel.developer-tools.tabs.assist.download_results"
|
||||||
)}
|
)}
|
||||||
</button>
|
</ha-button>
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { CSSResultGroup, LitElement, css, html } from "lit";
|
import { LitElement, css, html } from "lit";
|
||||||
import { customElement, property } from "lit/decorators";
|
import { customElement, property } from "lit/decorators";
|
||||||
|
import "../../../components/ha-card";
|
||||||
import { SubscribeMixin } from "../../../mixins/subscribe-mixin";
|
import { SubscribeMixin } from "../../../mixins/subscribe-mixin";
|
||||||
import { haStyle } from "../../../resources/styles";
|
import { haStyle } from "../../../resources/styles";
|
||||||
import { HomeAssistant } from "../../../types";
|
import { HomeAssistant } from "../../../types";
|
||||||
@ -18,9 +19,7 @@ class HaPanelDevDebug extends SubscribeMixin(LitElement) {
|
|||||||
.header=${this.hass.localize(
|
.header=${this.hass.localize(
|
||||||
"ui.panel.developer-tools.tabs.debug.title"
|
"ui.panel.developer-tools.tabs.debug.title"
|
||||||
)}
|
)}
|
||||||
class="form"
|
|
||||||
>
|
>
|
||||||
<div class="card-content">
|
|
||||||
<ha-debug-connection-row
|
<ha-debug-connection-row
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
.narrow=${this.narrow}
|
.narrow=${this.narrow}
|
||||||
@ -30,8 +29,7 @@ class HaPanelDevDebug extends SubscribeMixin(LitElement) {
|
|||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
static get styles(): CSSResultGroup {
|
static styles = [
|
||||||
return [
|
|
||||||
haStyle,
|
haStyle,
|
||||||
css`
|
css`
|
||||||
.content {
|
.content {
|
||||||
@ -43,7 +41,6 @@ class HaPanelDevDebug extends SubscribeMixin(LitElement) {
|
|||||||
`,
|
`,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface HTMLElementTagNameMap {
|
interface HTMLElementTagNameMap {
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
"strict": true,
|
"strict": true,
|
||||||
"rules": {
|
"rules": {
|
||||||
// Custom elements
|
// Custom elements
|
||||||
"no-unclosed-tag": "warning",
|
|
||||||
"no-missing-element-type-definition": "error",
|
"no-missing-element-type-definition": "error",
|
||||||
// Binding names
|
// Binding names
|
||||||
"no-legacy-attribute": "error",
|
"no-legacy-attribute": "error",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user