Fix keymitt_ble config-flow (#109644)

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
pull/109883/head
spycle 2024-02-04 21:50:28 +00:00 committed by Franck Nijhof
parent 0395315267
commit 3ba63fc78f
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,8 @@ class MicroBotConfigFlow(ConfigFlow, domain=DOMAIN):
await self._client.connect(init=True)
return self.async_show_form(step_id="link")
if not await self._client.is_connected():
await self._client.connect(init=False)
if not await self._client.is_connected():
errors["base"] = "linking"
else: