Skip to content

Commit

Permalink
Change message timeout handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneNulschDE committed Nov 28, 2024
1 parent ecd7f09 commit d7f0c23
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_components/mbapi2020/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,10 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry):
LOGGER.warning("Account is blocked. Reload will happen after unblock at midnight (GMT).")
break
elif retry_counter == 60 and not coordinator.client._account_blocked:
raise HomeAssistantError(
"No car information registered for this account. Check the MB website with the same account."
LOGGER.warning(
"No car information received via websocket for this account. Check the MB website with the same account."
)
break

await asyncio.sleep(0.5)
retry_counter += 1
Expand Down

0 comments on commit d7f0c23

Please sign in to comment.