8000 Minor cleanup. · home-assistant/core@e0795e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit e0795e4

Browse files
committed
Minor cleanup.
1 parent b5719e6 commit e0795e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

homeassistant/components/nederlandse_spoorwegen/config_flow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ class NederlandseSpoorwegenSubentryFlowHandler(ConfigSubentryFlow):
8282

8383
def __init__(self) -> None:
8484
"""Initialize the config flow."""
85-
self._stations = dict[str, str]
85+
self._stations: dict[str, str] = {}
8686

8787
async def async_step_user(
8888
self, user_input: dict[str, Any] | None = None
8989
) -> SubentryFlowResult:
9090
"""User flow to add a new train."""
9191

92-
if self._stations is None:
92+
if len(self._stations) == 0:
9393
nsapi = self.hass.config_entries.async_get_known_entry(
9494
self.handler[0]
9595
).runtime_data.nsapi

0 commit comments

Comments
 (0)
0