From 3ba63fc78f03b00aa48b3ea85cba425729a4aa0d Mon Sep 17 00:00:00 2001 From: spycle <48740594+spycle@users.noreply.github.com> Date: Sun, 4 Feb 2024 21:50:28 +0000 Subject: [PATCH] Fix keymitt_ble config-flow (#109644) Co-authored-by: Joost Lekkerkerker --- homeassistant/components/keymitt_ble/config_flow.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/keymitt_ble/config_flow.py b/homeassistant/components/keymitt_ble/config_flow.py index e8176b152a6..5665dc27d17 100644 --- a/homeassistant/components/keymitt_ble/config_flow.py +++ b/homeassistant/components/keymitt_ble/config_flow.py @@ -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: