mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Catch failing to fetch forecasts (#9765)
This commit is contained in:
parent
29d29a337f
commit
2557b03b11
@ -201,7 +201,11 @@ export class HuiEnergySolarGraphCard
|
|||||||
isComponentLoaded(this.hass, "forecast_solar") &&
|
isComponentLoaded(this.hass, "forecast_solar") &&
|
||||||
solarSources.some((source) => source.config_entry_solar_forecast)
|
solarSources.some((source) => source.config_entry_solar_forecast)
|
||||||
) {
|
) {
|
||||||
forecasts = await getForecastSolarForecasts(this.hass);
|
try {
|
||||||
|
forecasts = await getForecastSolarForecasts(this.hass);
|
||||||
|
} catch (_e) {
|
||||||
|
// ignore
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const statisticsData = Object.values(energyData.stats);
|
const statisticsData = Object.values(energyData.stats);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user