Skip to content

Commit

Permalink
Too early close
Browse files Browse the repository at this point in the history
  • Loading branch information
CoMPaTech committed Sep 5, 2024
1 parent ec59397 commit 5df447d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/stromer/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ async def validate_input(_: HomeAssistant, data: dict[str, Any]) -> dict:
if not await stromer.stromer_connect():
raise InvalidAuth
LOGGER.debug("Credentials validated successfully")
await stromer.stromer_disconnect()

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

await stromer.stromer_disconnect()

return all_bikes


Expand Down

0 comments on commit 5df447d

Please sign in to comment.