From 4d426f80bf7f5cab86c7d969c3d269b958aeffc7 Mon Sep 17 00:00:00 2001 From: aunefyren Date: Sun, 4 Feb 2024 17:16:08 +0100 Subject: [PATCH] Update config_flow.py --- custom_components/bluesound_alt/config_flow.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/bluesound_alt/config_flow.py b/custom_components/bluesound_alt/config_flow.py index f26e91d..5d7a686 100644 --- a/custom_components/bluesound_alt/config_flow.py +++ b/custom_components/bluesound_alt/config_flow.py @@ -48,9 +48,9 @@ async def validate_input(hass: HomeAssistant, data: dict) -> dict[str, Any]: """ hosts = CONF_HOSTS - hosts[0].CONF_HOST = data[CONF_HOST] - hosts[0].CONF_NAME = data[CONF_NAME] - hosts[0].CONF_PORT = CONF_PORT[DEFAULT_PORT] + hosts[0][CONF_HOST] = data[CONF_HOST] + hosts[0][CONF_NAME] = data[CONF_NAME] + hosts[0][CONF_PORT] = CONF_PORT[DEFAULT_PORT] result = await async_setup_platform(HomeAssistant, hosts, True, None) if result is not True: