H commited on
Commit
845357b
·
1 Parent(s): ad6777f

Fix component qweather (#2240)

Browse files

### What problem does this PR solve?

#2239

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Files changed (1) hide show
  1. agent/component/qweather.py +1 -1
agent/component/qweather.py CHANGED
@@ -51,7 +51,7 @@ class QWeatherParam(ComponentParamBase):
51
  ['zh', 'zh-hant', 'en', 'de', 'es', 'fr', 'it', 'ja', 'ko', 'ru', 'hi', 'th', 'ar', 'pt',
52
  'bn', 'ms', 'nl', 'el', 'la', 'sv', 'id', 'pl', 'tr', 'cs', 'et', 'vi', 'fil', 'fi',
53
  'he', 'is', 'nb'])
54
- self.check_vaild_value(self.time_period, "Time period", ['now', '3d', '7d', '10d', '15d', '30d'])
55
 
56
 
57
  class QWeather(ComponentBase, ABC):
 
51
  ['zh', 'zh-hant', 'en', 'de', 'es', 'fr', 'it', 'ja', 'ko', 'ru', 'hi', 'th', 'ar', 'pt',
52
  'bn', 'ms', 'nl', 'el', 'la', 'sv', 'id', 'pl', 'tr', 'cs', 'et', 'vi', 'fil', 'fi',
53
  'he', 'is', 'nb'])
54
+ self.check_valid_value(self.time_period, "Time period", ['now', '3d', '7d', '10d', '15d', '30d'])
55
 
56
 
57
  class QWeather(ComponentBase, ABC):