Skip to content

Commit

Permalink
Se modifica timeout a 60
Browse files Browse the repository at this point in the history
  • Loading branch information
Danieldiazi committed Aug 7, 2023
1 parent e66f60d commit 789695b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions custom_components/meteogalicia/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 789695b

Please sign in to comment.