mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 19:26:36 +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",
|
||||
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") {
|
||||
cards.push({
|
||||
type: "media-control",
|
||||
|
Loading…
x
Reference in New Issue
Block a user