Forráskód Böngészése

#5 only report precipitation if >0

Martin 9 éve
szülő
commit
09fb03f8f4
1 módosított fájl, 1 hozzáadás és 1 törlés
  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)