mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-01 13:37:47 +00:00
typing
This commit is contained in:
parent
e6f33fb62f
commit
2639cae21e
@ -401,7 +401,7 @@ const getEnergyData = async (
|
|||||||
volume: lengthUnit === "km" ? "L" : "gal",
|
volume: lengthUnit === "km" ? "L" : "gal",
|
||||||
};
|
};
|
||||||
|
|
||||||
const _energyStats = energyStatIds.length
|
const _energyStats: Statistics | Promise<Statistics> = energyStatIds.length
|
||||||
? fetchStatistics(
|
? fetchStatistics(
|
||||||
hass!,
|
hass!,
|
||||||
startMinHour,
|
startMinHour,
|
||||||
@ -412,7 +412,7 @@ const getEnergyData = async (
|
|||||||
["sum"]
|
["sum"]
|
||||||
)
|
)
|
||||||
: {};
|
: {};
|
||||||
const _waterStats = waterStatIds.length
|
const _waterStats: Statistics | Promise<Statistics> = waterStatIds.length
|
||||||
? fetchStatistics(
|
? fetchStatistics(
|
||||||
hass!,
|
hass!,
|
||||||
startMinHour,
|
startMinHour,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user