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

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

No files matched your search

@@ -17,17 +17,21 @@ import homeassistant.helpers.config_validation as cv
_LOGGER = logging.getLogger(__name__)
REQUIREMENTS = ['holidays==0.8.1']
REQUIREMENTS = ['holidays==0.9.3']
# List of all countries currently supported by holidays
# There seems to be no way to get the list out at runtime
ALL_COUNTRIES = ['Australia', 'AU', 'Austria', 'AT', 'Canada', 'CA',
'Colombia', 'CO', 'Czech', 'CZ', 'Denmark', 'DK', 'England',
'EuropeanCentralBank', 'ECB', 'TAR', 'Germany', 'DE',
'Ireland', 'Isle of Man', 'Mexico', 'MX', 'Netherlands', 'NL',
'NewZealand', 'NZ', 'Northern Ireland', 'Norway', 'NO',
'Portugal', 'PT', 'PortugalExt', 'PTE', 'Scotland', 'Spain',
'ES', 'UnitedKingdom', 'UK', 'UnitedStates', 'US', 'Wales']
ALL_COUNTRIES = ['Australia', 'AU', 'Austria', 'AT', 'Belgium', 'BE', 'Canada',
'CA', 'Colombia', 'CO', 'Czech', 'CZ', 'Denmark', 'DK',
'England', 'EuropeanCentralBank', 'ECB', 'TAR', 'Finland',
'FI', 'France', 'FRA', 'Germany', 'DE', 'Ireland',
'Isle of Man', 'Italy', 'IT', 'Japan', 'JP', 'Mexico', 'MX',
'Netherlands', 'NL', 'NewZealand', 'NZ', 'Northern Ireland',
'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_PROVINCE = 'province'
CONF_WORKDAYS = 'workdays'
+1 -1
View File
@@ -346,7 +346,7 @@ hikvision==0.4
hipnotify==1.0.8
# homeassistant.components.binary_sensor.workday
holidays==0.8.1
holidays==0.9.3
# homeassistant.components.frontend
home-assistant-frontend==20180119.0
+1 -1
View File
@@ -72,7 +72,7 @@ haversine==0.4.5
hbmqtt==0.9.1
# homeassistant.components.binary_sensor.workday
holidays==0.8.1
holidays==0.9.3
# homeassistant.components.frontend
home-assistant-frontend==20180119.0