Skip to content

Commit

Permalink
(temporary) disable SSL check for epexspot.com
Browse files Browse the repository at this point in the history
https://www.epexspot.com renewed their SSL certificate with GlobalSign for a year.

This certificate is not trusted in all browsers and needs a root certificate to be installed.

This is a workaround.
  • Loading branch information
mampfes committed Jan 10, 2024
1 parent 8d41c9b commit 3ac3e12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion custom_components/epex_spot/EPEXSpot/EPEXSpotWeb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ async def _fetch_data(self, delivery_date):
# "ajax_page_state[libraries]": "bootstrap/popover,bootstrap/tooltip,core/html5shiv,core/jquery.form,epex/global-scripts,epex/global-styling,epex/highcharts,epex_core/data-disclaimer,epex_market_data/filters,epex_market_data/tables,eu_cookie_compliance/eu_cookie_compliance_default,statistics/drupal.statistics,system/base", # noqa: E501
}

async with self._session.post(self.URL, params=params, data=data) as resp:
async with self._session.post(
self.URL, params=params, data=data, verify_ssl=False
) as resp:
resp.raise_for_status()
return await resp.json()

Expand Down
2 changes: 1 addition & 1 deletion custom_components/epex_spot/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/mampfes/ha_epex_spot/issues",
"requirements": ["bs4"],
"version": "2.3.0"
"version": "2.3.1"
}

0 comments on commit 3ac3e12

Please sign in to comment.