mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix statistics graph days_to_show can't be erased (#15892)
This commit is contained in:
parent
da2de3c7d2
commit
d07ae1cf48
@ -172,7 +172,7 @@ export class HuiStatisticsGraphCardEditor
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "days_to_show",
|
name: "days_to_show",
|
||||||
required: true,
|
default: 30,
|
||||||
selector: { number: { min: 1, mode: "box" } },
|
selector: { number: { min: 1, mode: "box" } },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -258,7 +258,6 @@ export class HuiStatisticsGraphCardEditor
|
|||||||
const data = {
|
const data = {
|
||||||
chart_type: "line",
|
chart_type: "line",
|
||||||
period: "hour",
|
period: "hour",
|
||||||
days_to_show: 30,
|
|
||||||
...this._config,
|
...this._config,
|
||||||
stat_types: configured_stat_types,
|
stat_types: configured_stat_types,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user