From 542e24b075d8569b1fbe0ffa9947c6182dcfd4f2 Mon Sep 17 00:00:00 2001 From: jcgoette Date: Fri, 24 Nov 2023 13:42:38 -0500 Subject: [PATCH] feat: Update unique_id in config_flow --- custom_components/babybuddy/config_flow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom_components/babybuddy/config_flow.py b/custom_components/babybuddy/config_flow.py index 19cd7ef..cc548c6 100644 --- a/custom_components/babybuddy/config_flow.py +++ b/custom_components/babybuddy/config_flow.py @@ -67,7 +67,9 @@ async def async_step_user( errors = {} if user_input is not None: - await self.async_set_unique_id(user_input[CONF_HOST]) + await self.async_set_unique_id( + f"{user_input[CONF_HOST]}-{user_input[CONF_API_KEY]}" + ) self._abort_if_unique_id_configured() try: