Don't set to failed if not enabled

- Allow any falsey value to indicate failure
This commit is contained in:
Eddy G
2025-06-24 23:42:22 -04:00
parent bec80a1ebe
commit 137c2f6d08

View File

@@ -31,8 +31,8 @@ class HourlyGraph extends WeatherDisplay {
if (!super.getData(undefined, refresh)) return;
const data = await getHourlyData(() => this.stillWaiting());
if (data === undefined) {
this.setStatus(STATUS.failed);
if (!data) {
if (this.isEnabled) this.setStatus(STATUS.failed);
return;
}