diff --git a/src/components/chart/ha-chart-base.ts b/src/components/chart/ha-chart-base.ts index 0703d66eb9..597b5650fc 100644 --- a/src/components/chart/ha-chart-base.ts +++ b/src/components/chart/ha-chart-base.ts @@ -387,9 +387,9 @@ export class HaChartBase extends LitElement { if (axis.type !== "time" || axis.show === false) { return axis; } - if (axis.max && axis.min) { + if (axis.min) { this._minutesDifference = differenceInMinutes( - axis.max as Date, + (axis.max as Date) || new Date(), axis.min as Date ); }