owmweather - Fix calling weather if it is not available

pull/2762/head
Martin Boonk 2023-05-17 22:22:48 +02:00
parent bd34c54eed
commit fe240ea27c
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ function parseWeather(response) {
json.weather = weather;
require("Storage").writeJSON('weather.json', json);
require("weather").emit("update", json.weather);
if (require("Storage").read("weather")!==undefined) require("weather").emit("update", json.weather);
return undefined;
} else {
return /*LANG*/"Not OWM data";