mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
add history-graph to generated mode (#2563)
This commit is contained in:
parent
4e86cf01b8
commit
dc334844ed
@ -58,6 +58,14 @@ const computeCards = (
|
|||||||
type: "thermostat",
|
type: "thermostat",
|
||||||
entity: entityId,
|
entity: entityId,
|
||||||
});
|
});
|
||||||
|
} else if (domain === "history_graph" && stateObj) {
|
||||||
|
cards.push({
|
||||||
|
type: "history-graph",
|
||||||
|
entities: stateObj.attributes.entity_id,
|
||||||
|
hours_to_show: stateObj.attributes.hours_to_show,
|
||||||
|
title: stateObj.attributes.friendly_name,
|
||||||
|
refresh_interval: stateObj.attributes.refresh,
|
||||||
|
});
|
||||||
} else if (domain === "media_player") {
|
} else if (domain === "media_player") {
|
||||||
cards.push({
|
cards.push({
|
||||||
type: "media-control",
|
type: "media-control",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user