From 6dadd467ab6c844d1512fe1c03693bb6757ea851 Mon Sep 17 00:00:00 2001 From: starkillerOG Date: Sun, 15 Sep 2024 09:55:11 +0200 Subject: [PATCH] Remember Reolink config flow input (#125962) --- homeassistant/components/reolink/config_flow.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/homeassistant/components/reolink/config_flow.py b/homeassistant/components/reolink/config_flow.py index 067a7e24b8e..67db2e50b8a 100644 --- a/homeassistant/components/reolink/config_flow.py +++ b/homeassistant/components/reolink/config_flow.py @@ -205,6 +205,11 @@ class ReolinkFlowHandler(ConfigFlow, domain=DOMAIN): if CONF_HOST not in user_input: user_input[CONF_HOST] = self._host + # remember input in case of a error + self._username = user_input[CONF_USERNAME] + self._password = user_input[CONF_PASSWORD] + self._host = user_input[CONF_HOST] + host = ReolinkHost(self.hass, user_input, DEFAULT_OPTIONS) try: await host.async_init()