From 2fcd574f12d48eaec122f96b6b15e9408d395b72 Mon Sep 17 00:00:00 2001 From: Hemna Date: Wed, 23 Apr 2025 09:59:08 -0400 Subject: [PATCH] Fixed setup for AVWXWeatherPlugin This ensures that during setup() the plugin sets itself to enabled if all checks pass. --- aprsd/plugins/weather.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aprsd/plugins/weather.py b/aprsd/plugins/weather.py index c7981f9..74a935c 100644 --- a/aprsd/plugins/weather.py +++ b/aprsd/plugins/weather.py @@ -323,8 +323,8 @@ class AVWXWeatherPlugin(plugin.APRSDRegexCommandPluginBase): elif not CONF.avwx_plugin.apiKey: LOG.error('Config avwx_plugin.apiKey not specified. Disabling') return False - else: - return True + + self.enabled = True def help(self): _help = [