mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +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 || " ";
|
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: "%",
|
||||||
|
@ -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[];
|
||||||
|
@ -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() {
|
||||||
|
@ -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() {
|
||||||
|
@ -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": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user