diff --git a/custom_components/mbtalive/config_flow.py b/custom_components/mbtalive/config_flow.py index 9ad7597..6c464f0 100644 --- a/custom_components/mbtalive/config_flow.py +++ b/custom_components/mbtalive/config_flow.py @@ -21,7 +21,10 @@ def get_user_schema(default_api_key: str = "") -> vol.Schema: vol.Required("arrive_at", default=""): str, vol.Required("api_key", default=default_api_key): vol.All(str, vol.Length(min=32, max=32)), vol.Optional("max_trips", default=2): int, - vol.Optional("train", default=""): vol.Optional(str, vol.Length(min=3, max=3)) + vol.Optional("train", default=""): vol.Any( + vol.All(str, vol.Length(min=3, max=3)), + "" + ) }) diff --git a/custom_components/mbtalive/manifest.json b/custom_components/mbtalive/manifest.json index 250830c..2c65ba5 100644 --- a/custom_components/mbtalive/manifest.json +++ b/custom_components/mbtalive/manifest.json @@ -8,7 +8,7 @@ "loggers": ["MBTALive"], "dependencies": [], "requirements": ["MBTAclient>=1.1.31"], - "version": "2.1.2", + "version": "2.1.3", "config_flow": true }