Skip to content

Commit 6d19c69

Browse files
committed
fixed a bug in via_station where multiple stations handled incorrectly
1 parent 9525da2 commit 6d19c69

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

custom_components/db_infoscreen/config_flow.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ def __init__(self, config_entry):
134134

135135
async def async_step_init(self, user_input=None):
136136
if user_input is not None:
137+
# Process comma-separated via stations into list
138+
via_raw = user_input.get(CONF_VIA_STATIONS, "")
139+
user_input[CONF_VIA_STATIONS] = [
140+
s.strip() for s in via_raw.split(",") if s.strip()
141+
]
137142
return self.async_create_entry(title="", data=user_input)
138143

139144
return self.async_show_form(

0 commit comments

Comments
 (0)