Show graph for zone in more info (#13475)

This commit is contained in:
Paulus Schoutsen 2022-08-24 10:18:45 -04:00 committed by GitHub
parent d64ade3848
commit 166d6f1c88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 3 deletions

View File

@ -412,6 +412,7 @@ export const computeHistory = (
unit = stateWithUnitorStateClass.a.unit_of_measurement || " "; unit = stateWithUnitorStateClass.a.unit_of_measurement || " ";
} else { } else {
unit = { unit = {
zone: localize("ui.dialogs.more_info_control.zone.graph_unit"),
climate: hass.config.unit_system.temperature, climate: hass.config.unit_system.temperature,
counter: "#", counter: "#",
humidifier: "%", humidifier: "%",

View File

@ -13,7 +13,7 @@ import { HomeAssistant } from "../types";
import { UNAVAILABLE_STATES } from "./entity"; import { UNAVAILABLE_STATES } from "./entity";
const LOGBOOK_LOCALIZE_PATH = "ui.components.logbook.messages"; const LOGBOOK_LOCALIZE_PATH = "ui.components.logbook.messages";
export const CONTINUOUS_DOMAINS = ["counter", "proximity", "sensor"]; export const CONTINUOUS_DOMAINS = ["counter", "proximity", "sensor", "zone"];
export interface LogbookStreamMessage { export interface LogbookStreamMessage {
events: LogbookEntry[]; events: LogbookEntry[];

View File

@ -104,7 +104,7 @@ export class MoreInfoHistory extends LitElement {
} }
private _close(): void { private _close(): void {
setTimeout(() => fireEvent(this, "closed"), 500); setTimeout(() => fireEvent(this, "close-dialog"), 500);
} }
static get styles() { static get styles() {

View File

@ -61,7 +61,7 @@ export class MoreInfoLogbook extends LitElement {
} }
private _close(): void { private _close(): void {
setTimeout(() => fireEvent(this, "closed"), 500); setTimeout(() => fireEvent(this, "close-dialog"), 500);
} }
static get styles() { static get styles() {

View File

@ -803,6 +803,9 @@
"open_tilt_cover": "Open cover tilt", "open_tilt_cover": "Open cover tilt",
"close_tilt_cover": "Close cover tilt", "close_tilt_cover": "Close cover tilt",
"stop_cover": "Stop cover" "stop_cover": "Stop cover"
},
"zone": {
"graph_unit": "People home"
} }
}, },
"entity_registry": { "entity_registry": {