Open a1bert01 opened 4 days ago
--- custom_components/cz_energy_spot_prices/spot_rate.py~ 2024-10-08 10:01:32.000000000 +0200 +++ custom_components/cz_energy_spot_prices/spot_rate.py 2024-11-28 16:23:54.036771892 +0100 @@ -90,7 +90,7 @@ async def _download(self, query: str) -> str: try: - async with aiohttp.ClientSession() as session: + async with aiohttp.ClientSession(trust_env=True) as session: async with session.post(self.OTE_PUBLIC_URL, data=query) as response: return await response.text() except aiohttp.ClientError as e: