Ver Fonte

#5 only report precipitation if >0

Martin há 9 anos atrás
pai
commit
09fb03f8f4
1 ficheiros alterados com 1 adições e 1 exclusões
  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)