diff --git a/homeassistant/components/environment_canada/weather.py b/homeassistant/components/environment_canada/weather.py index 06bdd0dffc7..4d226261b94 100644 --- a/homeassistant/components/environment_canada/weather.py +++ b/homeassistant/components/environment_canada/weather.py @@ -2,9 +2,6 @@ from __future__ import annotations import datetime -import re - -import voluptuous as vol from homeassistant.components.weather import ( ATTR_CONDITION_CLEAR_NIGHT, @@ -35,16 +32,6 @@ from homeassistant.util import dt from .const import DOMAIN - -def validate_station(station): - """Check that the station ID is well-formed.""" - if station is None: - return None - if not re.fullmatch(r"[A-Z]{2}/s0000\d{3}", station): - raise vol.Invalid('Station ID must be of the form "XX/s0000###"') - return station - - # Icon codes from http://dd.weatheroffice.ec.gc.ca/citypage_weather/ # docs/current_conditions_icon_code_descriptions_e.csv ICON_CONDITION_MAP = {