From c0180712188322142fdabc7d62c1e98065845237 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sun, 15 Apr 2018 09:50:44 +0200 Subject: [PATCH] Revert "Update yweather.py" (#13900) * Revert "Add unique_id for BMW ConnectedDrive (#13888)" This reverts commit 9014e2684565066afadd25ea8dc980f63d01a8c4. * Revert "Added snips service descriptions (#13883)" This reverts commit 1c4da0c4a6c3146d4783e09614e151f4eb90cbe8. * Revert "Fix race condition for component loaded before listening (#13887)" This reverts commit bba997e484baaf9a415352a971f8ae91e99a6a27. * Revert "Missing property decorator added (#13889)" This reverts commit bf98b793c5cfb163f587047b24cfc55e041adbe9. * Revert "Update frontend to 20180414.0" This reverts commit 1617fbea4c4570bea02d7d94bbe314248a5a5a17. * Revert "Further untangle data entry flow (#13855)" This reverts commit 4d44c0feff03ddf1c0c57bd130cd1bdfa8c6621a. * Revert "add support for Kodi discovery (#13790)" This reverts commit 5a5dad689b3421522b8cfa473c111d155eb2ecb6. * Revert "Update yweather.py (#13851)" This reverts commit c3388d63a1929a6c197644d1ae1f622c4d58c793. --- homeassistant/components/weather/yweather.py | 31 ++++++++------------ 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/homeassistant/components/weather/yweather.py b/homeassistant/components/weather/yweather.py index 8e638895660..5987cf7621f 100644 --- a/homeassistant/components/weather/yweather.py +++ b/homeassistant/components/weather/yweather.py @@ -32,27 +32,20 @@ DEFAULT_NAME = 'Yweather' SCAN_INTERVAL = timedelta(minutes=10) CONDITION_CLASSES = { - '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], + 'clear-night': [31], + 'cloudy': [26, 27, 28, 29, 30], 'fog': [19, 20, 21, 22, 23], 'hail': [17, 18, 35], - '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], + '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': [], 'exceptional': [0, 1, 2], }