From 0245c78245fba0f7177c5cfa2096c2559fa6dee7 Mon Sep 17 00:00:00 2001 From: Luis Miranda <161006+luuuis@users.noreply.github.com> Date: Wed, 17 Apr 2024 12:00:13 +0100 Subject: [PATCH] fix: temporarily disable SSL verification due to changes in OMIE.es (#63) --- custom_components/omie/coordinator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/omie/coordinator.py b/custom_components/omie/coordinator.py index f304003..2da8f8a 100644 --- a/custom_components/omie/coordinator.py +++ b/custom_components/omie/coordinator.py @@ -138,7 +138,7 @@ def _data_is_fresh(self) -> bool: async def fetch_to_dict(session: aiohttp.ClientSession, source: str, market_date: date, short_names: dict[str, str]) -> Optional[OMIEModel]: - async with await session.get(source, timeout=DEFAULT_TIMEOUT.total_seconds()) as resp: + async with await session.get(source, ssl=False, timeout=DEFAULT_TIMEOUT.total_seconds()) as resp: if resp.status == 404: return None