mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Add missing TypeVar in vlc_telnet decorator (#63587)
This commit is contained in:
parent
7b78862a11
commit
5783c07630
@ -74,7 +74,7 @@ def catch_vlc_errors(
|
||||
"""Catch VLC errors."""
|
||||
|
||||
@wraps(func)
|
||||
async def wrapper(self: VlcDevice, *args: _P.args, **kwargs: _P.kwargs) -> None:
|
||||
async def wrapper(self: _T, *args: _P.args, **kwargs: _P.kwargs) -> None:
|
||||
"""Catch VLC errors and modify availability."""
|
||||
try:
|
||||
await func(self, *args, **kwargs)
|
||||
|
Loading…
x
Reference in New Issue
Block a user