Fixing current forecast

This commit is contained in:
2026-06-24 16:25:49 -04:00
parent caf721db6e
commit fedd7ef5e2

View File

@@ -45,7 +45,7 @@ app.get('/api/current', async (req, res) => {
const condition = getWeatherCondition(Object.assign(sensors, space))
// Merge forecast summary fields — sensor readings take priority
const forecast = getForecast();
const forecast = await getForecast();
console.log(forecast?.summary);
const merged = {
...(forecast?.summary ? {