浏览代码

#5 only report precipitation if >0

Martin 9 年之前
父节点
当前提交
09fb03f8f4
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      voice_control/services/weather.py

+ 1 - 1
voice_control/services/weather.py

@@ -99,5 +99,5 @@ class Weather(base.BaseService):
         
         if 'precipitation' in forecast:
             v = float(forecast['precipitation']['@value'])
-            if v > -1:
+            if v > 0:
                 output.tts('precipitation: %.1f' % v)