Skip to content

Commit

Permalink
Increase timeout interval for web requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Radek Novacek committed Oct 8, 2024
1 parent 80eeb46 commit 831fa45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/cz_energy_spot_prices/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ async def fetch_data(self):
zoneinfo = ZoneInfo(self.hass.config.time_zone)
now = datetime.now(zoneinfo)

async with async_timeout.timeout(10):
async with async_timeout.timeout(30):
electricity_rates, gas_rates = await asyncio.gather(
self._spot_rate.get_electricity_rates(now, in_eur=self._in_eur, unit=self._unit),
self._spot_rate.get_gas_rates(now, in_eur=self._in_eur, unit=self._unit),
Expand Down

0 comments on commit 831fa45

Please sign in to comment.