Skip to content

Commit 5df447d

Browse files
committed
Too early close
1 parent ec59397 commit 5df447d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

custom_components/stromer/config_flow.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,12 @@ async def validate_input(_: HomeAssistant, data: dict[str, Any]) -> dict:
3636
if not await stromer.stromer_connect():
3737
raise InvalidAuth
3838
LOGGER.debug("Credentials validated successfully")
39-
await stromer.stromer_disconnect()
4039

4140
# All bikes information available
4241
all_bikes = await stromer.stromer_detect()
4342

43+
await stromer.stromer_disconnect()
44+
4445
return all_bikes
4546

4647

0 commit comments

Comments
 (0)