Update yweather.py (#13802)

Map clear-night string to 31 value.
This commit is contained in:
Wojtek 2018-04-10 21:11:45 +02:00 committed by Pascal Vizeli
parent 978a79d369
commit 191e32f6cf

View File

@ -32,6 +32,7 @@ DEFAULT_NAME = 'Yweather'
SCAN_INTERVAL = timedelta(minutes=10) SCAN_INTERVAL = timedelta(minutes=10)
CONDITION_CLASSES = { CONDITION_CLASSES = {
'clear-night': [31],
'cloudy': [26, 27, 28, 29, 30], 'cloudy': [26, 27, 28, 29, 30],
'fog': [19, 20, 21, 22, 23], 'fog': [19, 20, 21, 22, 23],
'hail': [17, 18, 35], 'hail': [17, 18, 35],