mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-31 21:17: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",
|
||||
};
|
||||
|
||||
const _energyStats = energyStatIds.length
|
||||
const _energyStats: Statistics | Promise<Statistics> = energyStatIds.length
|
||||
? fetchStatistics(
|
||||
hass!,
|
||||
startMinHour,
|
||||
@ -412,7 +412,7 @@ const getEnergyData = async (
|
||||
["sum"]
|
||||
)
|
||||
: {};
|
||||
const _waterStats = waterStatIds.length
|
||||
const _waterStats: Statistics | Promise<Statistics> = waterStatIds.length
|
||||
? fetchStatistics(
|
||||
hass!,
|
||||
startMinHour,
|
||||
|
Loading…
x
Reference in New Issue
Block a user