Skip to content

Commit

Permalink
fix: set event loop for client
Browse files Browse the repository at this point in the history
  • Loading branch information
muhlba91 committed Dec 12, 2023
1 parent 2378b19 commit 45b1d6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/hella_onyx/api_connector.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""API connector for the ONYX integration."""
import logging

import asyncio
from typing import Any

from homeassistant.helpers.aiohttp_client import async_get_clientsession
Expand Down Expand Up @@ -31,7 +32,7 @@ def _client(self):
fingerprint=self.fingerprint,
access_token=self.token,
client_session=async_get_clientsession(self.hass),
event_loop=self.hass.loop,
event_loop=asyncio.new_event_loop(),
)
return self.__client

Expand Down

0 comments on commit 45b1d6b

Please sign in to comment.