From 9b4cceb3f7cef07b765762f4266a892e01d0bdb2 Mon Sep 17 00:00:00 2001 From: H <43509927+guoyuhao2330@users.noreply.github.com> Date: Wed, 4 Sep 2024 17:53:11 +0800 Subject: [PATCH] Fix component qweather (#2240) ### What problem does this PR solve? #2239 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- agent/component/qweather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/component/qweather.py b/agent/component/qweather.py index 833e2922c..2c38a8b7e 100644 --- a/agent/component/qweather.py +++ b/agent/component/qweather.py @@ -51,7 +51,7 @@ class QWeatherParam(ComponentParamBase): ['zh', 'zh-hant', 'en', 'de', 'es', 'fr', 'it', 'ja', 'ko', 'ru', 'hi', 'th', 'ar', 'pt', 'bn', 'ms', 'nl', 'el', 'la', 'sv', 'id', 'pl', 'tr', 'cs', 'et', 'vi', 'fil', 'fi', 'he', 'is', 'nb']) - self.check_vaild_value(self.time_period, "Time period", ['now', '3d', '7d', '10d', '15d', '30d']) + self.check_valid_value(self.time_period, "Time period", ['now', '3d', '7d', '10d', '15d', '30d']) class QWeather(ComponentBase, ABC):