mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +00:00
Show graph for zone in more info (#13475)
This commit is contained in:
parent
d64ade3848
commit
166d6f1c88
@ -412,6 +412,7 @@ export const computeHistory = (
|
||||
unit = stateWithUnitorStateClass.a.unit_of_measurement || " ";
|
||||
} else {
|
||||
unit = {
|
||||
zone: localize("ui.dialogs.more_info_control.zone.graph_unit"),
|
||||
climate: hass.config.unit_system.temperature,
|
||||
counter: "#",
|
||||
humidifier: "%",
|
||||
|
@ -13,7 +13,7 @@ import { HomeAssistant } from "../types";
|
||||
import { UNAVAILABLE_STATES } from "./entity";
|
||||
|
||||
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 {
|
||||
events: LogbookEntry[];
|
||||
|
@ -104,7 +104,7 @@ export class MoreInfoHistory extends LitElement {
|
||||
}
|
||||
|
||||
private _close(): void {
|
||||
setTimeout(() => fireEvent(this, "closed"), 500);
|
||||
setTimeout(() => fireEvent(this, "close-dialog"), 500);
|
||||
}
|
||||
|
||||
static get styles() {
|
||||
|
@ -61,7 +61,7 @@ export class MoreInfoLogbook extends LitElement {
|
||||
}
|
||||
|
||||
private _close(): void {
|
||||
setTimeout(() => fireEvent(this, "closed"), 500);
|
||||
setTimeout(() => fireEvent(this, "close-dialog"), 500);
|
||||
}
|
||||
|
||||
static get styles() {
|
||||
|
@ -803,6 +803,9 @@
|
||||
"open_tilt_cover": "Open cover tilt",
|
||||
"close_tilt_cover": "Close cover tilt",
|
||||
"stop_cover": "Stop cover"
|
||||
},
|
||||
"zone": {
|
||||
"graph_unit": "People home"
|
||||
}
|
||||
},
|
||||
"entity_registry": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user