From 423d595edff1c8457b54862e3e8b66f93bb4d4e4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 21 Mar 2019 04:31:15 +0100 Subject: [PATCH] Upgrade holidays to 0.9.10 (#22182) --- .../components/workday/binary_sensor.py | 32 ++++++++++--------- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 3 files changed, 19 insertions(+), 17 deletions(-) diff --git a/homeassistant/components/workday/binary_sensor.py b/homeassistant/components/workday/binary_sensor.py index 6b547927af4..b505e075018 100644 --- a/homeassistant/components/workday/binary_sensor.py +++ b/homeassistant/components/workday/binary_sensor.py @@ -1,9 +1,4 @@ -""" -Sensor to indicate whether the current day is a workday. - -For more details about this platform, please refer to the documentation at -https://home-assistant.io/components/binary_sensor.workday/ -""" +"""Sensor to indicate whether the current day is a workday.""" import logging from datetime import datetime, timedelta @@ -14,7 +9,7 @@ from homeassistant.const import CONF_NAME, WEEKDAYS from homeassistant.components.binary_sensor import BinarySensorDevice import homeassistant.helpers.config_validation as cv -REQUIREMENTS = ['holidays==0.9.9'] +REQUIREMENTS = ['holidays==0.9.10'] _LOGGER = logging.getLogger(__name__) @@ -22,15 +17,22 @@ _LOGGER = logging.getLogger(__name__) # There seems to be no way to get the list out at runtime ALL_COUNTRIES = [ 'Argentina', 'AR', 'Australia', 'AU', 'Austria', 'AT', - 'Brazil', 'BR', 'Belarus', 'BY', 'Belgium', 'BE', + 'Brazil', 'BR', 'Belarus', 'BY', 'Belgium', 'BE', 'Bulgaria', 'BG', 'Canada', 'CA', 'Colombia', 'CO', 'Croatia', 'HR', 'Czech', 'CZ', - 'Denmark', 'DK', 'England', 'EuropeanCentralBank', 'ECB', 'TAR', - 'Finland', 'FI', 'France', 'FRA', 'Germany', 'DE', 'Hungary', 'HU', - 'Honduras', 'HUD', - 'India', 'IND', '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', + 'Denmark', 'DK', + 'England', 'EuropeanCentralBank', 'ECB', 'TAR', + 'Finland', 'FI', 'France', 'FRA', + 'Germany', 'DE', + 'Hungary', 'HU', 'Honduras', 'HUD', + 'India', 'IND', 'Ireland', 'IE', 'Isle of Man', 'Italy', 'IT', + 'Japan', 'JP', + 'Lithuania', 'LT', 'Luxembourg', 'LU', + 'Mexico', 'MX', + 'Netherlands', 'NL', 'NewZealand', 'NZ', 'Northern Ireland', + 'Norway', 'NO', + 'Polish', 'PL', 'Portugal', 'PT', 'PortugalExt', 'PTE', + 'Russia', 'RU', + 'Scotland', 'Slovenia', 'SI', 'Slovakia', 'SK', 'South Africa', 'ZA', 'Spain', 'ES', 'Sweden', 'SE', 'Switzerland', 'CH', 'Ukraine', 'UA', 'UnitedKingdom', 'UK', 'UnitedStates', 'US', 'Wales', ] diff --git a/requirements_all.txt b/requirements_all.txt index a61f39e2084..ef5aa8f8cfc 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -545,7 +545,7 @@ hlk-sw16==0.0.7 hole==0.3.0 # homeassistant.components.workday.binary_sensor -holidays==0.9.9 +holidays==0.9.10 # homeassistant.components.frontend home-assistant-frontend==20190320.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 0795db63d52..98ef1dbab43 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -123,7 +123,7 @@ hbmqtt==0.9.4 hdate==0.8.7 # homeassistant.components.workday.binary_sensor -holidays==0.9.9 +holidays==0.9.10 # homeassistant.components.frontend home-assistant-frontend==20190320.0