Skip to content

Commit

Permalink
Use the proxy URL
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgiaever committed Dec 24, 2023
1 parent b1f5073 commit 4c2af3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/minrenovasjon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ async def query(
session = async_get_clientsession(self.__hass)

if url.startswith('https://komteksky'):
url = urllib.parse.quote(url)
url = const.URL_PROXY.format(urllib.parse.quote(url))

_LOGGER.info("URL:%s", url)

async with session.get(
url, headers=headers, timeout=aiohttp.ClientTimeout(total=60)
Expand Down

0 comments on commit 4c2af3c

Please sign in to comment.