Fix keymitt_ble config-flow (#109644)

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
spycle
2024-02-04 21:50:28 +00:00
committed by GitHub
parent edc6e3e2f9
commit 63ec20ab5d

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: