diff --git a/custom_components/polestar_api/config_flow.py b/custom_components/polestar_api/config_flow.py index 29ba38b..3a08ccf 100644 --- a/custom_components/polestar_api/config_flow.py +++ b/custom_components/polestar_api/config_flow.py @@ -1,6 +1,6 @@ """Config flow for the Polestar EV platform.""" + import asyncio -from asyncio import timeout import logging from aiohttp import ClientError @@ -9,7 +9,7 @@ from homeassistant import config_entries from homeassistant.const import CONF_PASSWORD, CONF_USERNAME -from .const import DOMAIN, TIMEOUT +from .const import DOMAIN from .polestar import Polestar _LOGGER = logging.getLogger(__name__) @@ -40,8 +40,7 @@ async def _create_device(self, username: str, password: str) -> None: self.hass, username, password) - with timeout(TIMEOUT): - await device.init() + await device.init() # check if we have a token, otherwise throw exception if device.polestarApi.auth.access_token is None: