Wrap dict attributes (#18290)

This commit is contained in:
Josh McCarty 2023-10-20 08:07:14 -07:00 committed by GitHub
parent 5e933e8e15
commit 16766f8878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
import { HassEntity } from "home-assistant-js-websocket";
import { html, LitElement, nothing } from "lit";
import { css, html, LitElement, nothing } from "lit";
import { customElement, property } from "lit/decorators";
import { until } from "lit/directives/until";
import { HomeAssistant } from "../types";
@ -64,6 +64,13 @@ class HaAttributeValue extends LitElement {
return this.hass.formatEntityAttributeValue(this.stateObj!, this.attribute);
}
static styles = css`
pre {
margin: 0;
white-space: pre-wrap;
}
`;
}
declare global {