Skip to content

Commit

Permalink
chore: update dependencies, fix websockets client (#229)
Browse files Browse the repository at this point in the history
* chore: update dependencies, fix websockets client

* chore: update github actions
  • Loading branch information
thepiwo authored Dec 3, 2024
1 parent 500d40f commit 2492845
Show file tree
Hide file tree
Showing 5 changed files with 1,013 additions and 745 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:

jobs:
lint:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@master
- uses: actions/cache@v3
Expand All @@ -33,9 +33,9 @@ jobs:
test:
strategy:
matrix:
python-version: ['3.11', '3.10', '3.9', '3.8', '3.7']
python-version: ['3.11', '3.10', '3.9', '3.8']
poetry-version: ['1.3.2']
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
env:
IS_COVERAGE_ALLOWED: ${{ secrets.CODECOV_TOKEN != '' }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
publish:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v4
Expand Down
6 changes: 3 additions & 3 deletions iolite_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ async def _fetch_heating(self):
logger.info("Connecting to heating WS")
uri = f"{self.BASE_URL}/heating/ws?SID={self.sid}"
async with websockets.connect(
uri, extra_headers=self._get_default_headers()
uri, additional_headers=self._get_default_headers()
) as websocket:
async for response in websocket:
logger.debug(
Expand All @@ -183,7 +183,7 @@ async def _devices_handler(self):
logger.info("Connecting to devices WS")
uri = f"{self.BASE_URL}/devices/ws?SID={self.sid}"
async with websockets.connect(
uri, extra_headers=self._get_default_headers()
uri, additional_headers=self._get_default_headers()
) as websocket:
async for response in websocket:
logger.debug(
Expand All @@ -199,7 +199,7 @@ async def _fetch_application(self, requests: list):
logger.info("Connecting to JSON WS")
uri = f"{self.BASE_URL}/bus/websocket/application/json?SID={self.sid}"
async with websockets.connect(
uri, extra_headers=self._get_default_headers()
uri, additional_headers=self._get_default_headers()
) as websocket:
for request in requests:
await self.__send_request(request, websocket)
Expand Down
Loading

0 comments on commit 2492845

Please sign in to comment.