expose more data for scroll messages

This commit is contained in:
Matt Walsh
2025-11-05 05:24:04 +00:00
parent e4ce0b6cc6
commit 9b422dd697
3 changed files with 4 additions and 3 deletions

View File

@@ -231,7 +231,7 @@ class CurrentWeather extends WeatherDisplay {
this.setAutoReload();
if (stillWaiting) this.stillWaitingCallbacks.push(stillWaiting);
return new Promise((resolve) => {
if (this.data) resolve(this.data);
if (this.data) resolve({ data: this.data, parameters: this.weatherParameters });
// data not available, put it into the data callback queue
this.getDataCallbacks.push(() => resolve(this.data));
});