8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5719e6 commit e0795e4Copy full SHA for e0795e4
homeassistant/components/nederlandse_spoorwegen/config_flow.py
@@ -82,14 +82,14 @@ class NederlandseSpoorwegenSubentryFlowHandler(ConfigSubentryFlow):
82
83
def __init__(self) -> None:
84
"""Initialize the config flow."""
85
- self._stations = dict[str, str]
+ self._stations: dict[str, str] = {}
86
87
async def async_step_user(
88
self, user_input: dict[str, Any] | None = None
89
) -> SubentryFlowResult:
90
"""User flow to add a new train."""
91
92
- if self._stations is None:
+ if len(self._stations) == 0:
93
nsapi = self.hass.config_entries.async_get_known_entry(
94
self.handler[0]
95
).runtime_data.nsapi
0 commit comments