Skip to content

Commit

Permalink
Fix stalls in config flow of APCUPSD (#108931)
Browse files Browse the repository at this point in the history
Fix deadlock in config flow of APCUPSD
  • Loading branch information
yuxincs committed Jan 27, 2024
1 parent 5dac5d5 commit 16a90f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions homeassistant/components/apcupsd/config_flow.py
Expand Up @@ -52,9 +52,8 @@ async def async_step_user(

# Test the connection to the host and get the current status for serial number.
coordinator = APCUPSdCoordinator(self.hass, host, port)

await coordinator.async_request_refresh()
await self.hass.async_block_till_done()

if isinstance(coordinator.last_exception, (UpdateFailed, asyncio.TimeoutError)):
errors = {"base": "cannot_connect"}
return self.async_show_form(
Expand Down

0 comments on commit 16a90f8

Please sign in to comment.