From c3388d63a1929a6c197644d1ae1f622c4d58c793 Mon Sep 17 00:00:00 2001 From: TheCellMC Date: Sat, 14 Apr 2018 08:32:44 +0000 Subject: [PATCH] Update yweather.py (#13851) * Update yweather.py * Update yweather.py * Update yweather.py * Update yweather.py --- homeassistant/components/weather/yweather.py | 31 ++++++++++++-------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/homeassistant/components/weather/yweather.py b/homeassistant/components/weather/yweather.py index 5987cf7621f..8e638895660 100644 --- a/homeassistant/components/weather/yweather.py +++ b/homeassistant/components/weather/yweather.py @@ -32,20 +32,27 @@ DEFAULT_NAME = 'Yweather' SCAN_INTERVAL = timedelta(minutes=10) CONDITION_CLASSES = { - 'clear-night': [31], - 'cloudy': [26, 27, 28, 29, 30], + 'clear-night': [31, 33], + 'sunny': [32, 34, 25, 36], + 'windy': [24], + 'fair': [34], + 'fair-night': [33], + 'cloudy': [26], + 'mostly-cloudy': [28], + 'mostly-cloudy-night': [27], + 'partly-cloudy': [30, 44], + 'partly-cloudy-night': [29], 'fog': [19, 20, 21, 22, 23], 'hail': [17, 18, 35], - 'lightning': [37], - 'lightning-rainy': [3, 4, 38, 39, 47], - 'partlycloudy': [44], - 'pouring': [40, 45], - 'rainy': [9, 11, 12], - 'snowy': [8, 13, 14, 15, 16, 41, 42, 43], - 'snowy-rainy': [5, 6, 7, 10, 46], - 'sunny': [32, 33, 34, 25, 36], - 'windy': [24], - 'windy-variant': [], + 'light-rain': [8, 9], + 'light-snow': [14], + 'heavy-rain': [11, 12, 45, 40], + 'heavy-snow': [41, 42, 43, 46], + 'snowy': [13, 15, 16], + 'rainy': [10], + 'snowy-rainy': [5, 6, 7, 10], + 'lightning': [3, 4, 37, 38, 39], + 'lightning-rainy': [45, 47], 'exceptional': [0, 1, 2], }