local forecast silent refresh

This commit is contained in:
Matt Walsh
2025-04-02 20:52:33 -05:00
parent 8fa00b34b4
commit 0baa31a92c
5 changed files with 17 additions and 18 deletions

View File

@@ -18,14 +18,13 @@ class ExtendedForecast extends WeatherDisplay {
this.timing.totalScreens = 2;
}
async getData(_weatherParameters, refresh) {
if (!super.getData(_weatherParameters, refresh)) return;
const weatherParameters = _weatherParameters ?? this.weatherParameters;
async getData(weatherParameters, refresh) {
if (!super.getData(weatherParameters, refresh)) return;
// request us or si units
let forecast;
try {
forecast = await json(weatherParameters.forecast, {
forecast = await json(this.weatherParameters.forecast, {
data: {
units: settings.units.value,
},