From 789695beca4377d21be160f2f1dd3ff7a193d8db Mon Sep 17 00:00:00 2001 From: Danieldiazi <3638478+Danieldiazi@users.noreply.github.com> Date: Mon, 7 Aug 2023 12:01:24 +0200 Subject: [PATCH] Se modifica timeout a 60 --- custom_components/meteogalicia/sensor.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/custom_components/meteogalicia/sensor.py b/custom_components/meteogalicia/sensor.py index e396727..76390ef 100644 --- a/custom_components/meteogalicia/sensor.py +++ b/custom_components/meteogalicia/sensor.py @@ -46,7 +46,7 @@ async def async_setup_platform( session = async_create_clientsession(hass) try: - async with async_timeout.timeout(TIMEOUT): + async with async_timeout.timeout(const.TIMEOUT): response = await get_forecast_data(hass, id_concello) name = response["predConcello"].get("nome") except Exception as exception: @@ -189,7 +189,7 @@ async def async_update(self) -> None: information = [] connected = False try: - async with async_timeout.timeout(TIMEOUT): + async with async_timeout.timeout(const.TIMEOUT): response = await get_forecast_data(self.hass, self.id) if response is None: self._state = None @@ -308,7 +308,7 @@ async def async_update(self) -> None: information = [] connected = False try: - async with async_timeout.timeout(TIMEOUT): + async with async_timeout.timeout(const.TIMEOUT): response = await get_forecast_data(self.hass, self.id) if response is None: self._state = None @@ -427,7 +427,7 @@ async def async_update(self) -> None: information = [] connected = False try: - async with async_timeout.timeout(TIMEOUT): + async with async_timeout.timeout(const.TIMEOUT): response = await get_forecast_data(self.hass, self.id) if response is None: @@ -564,7 +564,7 @@ async def async_update(self) -> None: information = [] connected = False try: - async with async_timeout.timeout(TIMEOUT): + async with async_timeout.timeout(const.TIMEOUT): response = await get_observation_data(self.hass, self.id)