mirror of
https://github.com/home-assistant/core.git
synced 2025-07-11 07:17:12 +00:00
parent
71eb45072c
commit
eb25968b31
@ -125,6 +125,10 @@ class TestWorkdaySetup:
|
|||||||
with pytest.raises(vol.Invalid):
|
with pytest.raises(vol.Invalid):
|
||||||
binary_sensor.valid_country("HomeAssistantLand")
|
binary_sensor.valid_country("HomeAssistantLand")
|
||||||
|
|
||||||
|
# Valid country code validation must not raise an exception
|
||||||
|
for country in ("IM", "LI", "US"):
|
||||||
|
assert binary_sensor.valid_country(country) == country
|
||||||
|
|
||||||
def test_setup_component_province(self):
|
def test_setup_component_province(self):
|
||||||
"""Set up workday component."""
|
"""Set up workday component."""
|
||||||
with assert_setup_component(1, "binary_sensor"):
|
with assert_setup_component(1, "binary_sensor"):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user