Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions matter_server/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import asyncio
import logging
from typing import TYPE_CHECKING, Any, Final, cast
from typing import TYPE_CHECKING, Any, Final, Self, cast
import uuid

from chip.clusters import Objects as Clusters
Expand Down Expand Up @@ -788,7 +788,7 @@ def _signal_event(
for callback in self._subscribers.get(key, []):
callback(event, data)

async def __aenter__(self) -> "MatterClient":
async def __aenter__(self) -> Self:
"""Initialize and connect the Matter Websocket client."""
await self.connect()
return self
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ test = [
"pytest-asyncio==1.3.0",
"pytest-aiohttp==1.1.0",
"pytest-cov==7.0.0",
"ruff==0.14.13",
"ruff==0.14.14",
"tomli==2.4.0",
]

Expand Down Expand Up @@ -222,7 +222,6 @@ ignore = [
"SLF001", # TEMPORARY DISABLED
"RUF010", # TEMPORARY DISABLED
"TRY300", # TEMPORARY DISABLED
"UP038", # TEMPORARY DISABLED
"PTH118", # TEMPORARY DISABLED
"PTH112", # TEMPORARY DISABLED
"PTH102", # TEMPORARY DISABLED
Expand Down