Skip to content

Commit

Permalink
Update config_flow.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aunefyren committed Feb 4, 2024
1 parent 570a939 commit 1b60a7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/bluesound_alt/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from homeassistant.const import (
CONF_HOST,
CONF_NAME,
EVENT_HOMEASSISTANT_STOP,
)
import homeassistant.helpers.config_validation as cv

Expand Down Expand Up @@ -55,6 +56,7 @@ async def validate_input(hass: HomeAssistant, data: dict) -> dict[str, Any]:
if len(data[CONF_NAME]) < 1:
raise InvalidName

HomeAssistant.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, None)
player = BluesoundPlayer(HomeAssistant, data[CONF_HOST], DEFAULT_PORT, data[CONF_NAME], None)
result = await player.force_update_sync_status(None, raise_timeout=False)
if result is not True:
Expand Down

0 comments on commit 1b60a7b

Please sign in to comment.