From b72c6c44242daf1e2bc4b0da687c702bf30cfef0 Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Tue, 26 Nov 2019 22:09:00 +0100 Subject: [PATCH] Update list of supported countries for Workday Sensor (#29000) * Updated list of supported countries * Added Honduras and Polish back to the list * Added HND for Honduras to the list --- homeassistant/components/workday/binary_sensor.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/workday/binary_sensor.py b/homeassistant/components/workday/binary_sensor.py index 3ca2afcc749..f95447c1e72 100644 --- a/homeassistant/components/workday/binary_sensor.py +++ b/homeassistant/components/workday/binary_sensor.py @@ -13,6 +13,7 @@ import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) # List of all countries currently supported by holidays +# Source: https://github.com/dr-prodigy/python-holidays#available-countries # There seems to be no way to get the list out at runtime ALL_COUNTRIES = [ "Argentina", @@ -42,6 +43,8 @@ ALL_COUNTRIES = [ "Denmark", "DK", "England", + "Estonia", + "EE", "EuropeanCentralBank", "ECB", "TAR", @@ -54,7 +57,9 @@ ALL_COUNTRIES = [ "Hungary", "HU", "Honduras", - "HUD", + "HND", + "Iceland", + "IS", "India", "IND", "Ireland", @@ -64,6 +69,8 @@ ALL_COUNTRIES = [ "IT", "Japan", "JP", + "Kenya", + "KE", "Lithuania", "LT", "Luxembourg", @@ -77,6 +84,9 @@ ALL_COUNTRIES = [ "Northern Ireland", "Norway", "NO", + "Peru", + "PE", + "Poland", "Polish", "PL", "Portugal",