Skip to content

Commit

Permalink
feat: Update unique_id in config_flow
Browse files Browse the repository at this point in the history
  • Loading branch information
jcgoette committed Nov 24, 2023
1 parent 5531cce commit 542e24b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/babybuddy/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 542e24b

Please sign in to comment.