Add more workday sensor countries and update holidays library to version 0.9.3 (#11826)

This commit is contained in:
Filip Bednárik 2018-01-20 17:09:05 +01:00 committed by Fabian Affolter
parent f7b129d790
commit a470cc212e
3 changed files with 14 additions and 10 deletions

View File

@ -17,17 +17,21 @@ import homeassistant.helpers.config_validation as cv
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
REQUIREMENTS = ['holidays==0.8.1'] REQUIREMENTS = ['holidays==0.9.3']
# List of all countries currently supported by holidays # List of all countries currently supported by holidays
# There seems to be no way to get the list out at runtime # There seems to be no way to get the list out at runtime
ALL_COUNTRIES = ['Australia', 'AU', 'Austria', 'AT', 'Canada', 'CA', ALL_COUNTRIES = ['Australia', 'AU', 'Austria', 'AT', 'Belgium', 'BE', 'Canada',
'Colombia', 'CO', 'Czech', 'CZ', 'Denmark', 'DK', 'England', 'CA', 'Colombia', 'CO', 'Czech', 'CZ', 'Denmark', 'DK',
'EuropeanCentralBank', 'ECB', 'TAR', 'Germany', 'DE', 'England', 'EuropeanCentralBank', 'ECB', 'TAR', 'Finland',
'Ireland', 'Isle of Man', 'Mexico', 'MX', 'Netherlands', 'NL', 'FI', 'France', 'FRA', 'Germany', 'DE', 'Ireland',
'NewZealand', 'NZ', 'Northern Ireland', 'Norway', 'NO', 'Isle of Man', 'Italy', 'IT', 'Japan', 'JP', 'Mexico', 'MX',
'Portugal', 'PT', 'PortugalExt', 'PTE', 'Scotland', 'Spain', 'Netherlands', 'NL', 'NewZealand', 'NZ', 'Northern Ireland',
'ES', 'UnitedKingdom', 'UK', 'UnitedStates', 'US', 'Wales'] 'Norway', 'NO', 'Polish', 'PL', 'Portugal', 'PT',
'PortugalExt', 'PTE', 'Scotland', 'Slovenia', 'SI',
'Slovakia', 'SK', 'South Africa', 'ZA', 'Spain', 'ES',
'Sweden', 'SE', 'UnitedKingdom', 'UK', 'UnitedStates', 'US',
'Wales']
CONF_COUNTRY = 'country' CONF_COUNTRY = 'country'
CONF_PROVINCE = 'province' CONF_PROVINCE = 'province'
CONF_WORKDAYS = 'workdays' CONF_WORKDAYS = 'workdays'

View File

@ -346,7 +346,7 @@ hikvision==0.4
hipnotify==1.0.8 hipnotify==1.0.8
# homeassistant.components.binary_sensor.workday # homeassistant.components.binary_sensor.workday
holidays==0.8.1 holidays==0.9.3
# homeassistant.components.frontend # homeassistant.components.frontend
home-assistant-frontend==20180119.0 home-assistant-frontend==20180119.0

View File

@ -72,7 +72,7 @@ haversine==0.4.5
hbmqtt==0.9.1 hbmqtt==0.9.1
# homeassistant.components.binary_sensor.workday # homeassistant.components.binary_sensor.workday
holidays==0.8.1 holidays==0.9.3
# homeassistant.components.frontend # homeassistant.components.frontend
home-assistant-frontend==20180119.0 home-assistant-frontend==20180119.0