From 5783c076303dc83c928e6036d3e3e4e23438b086 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Fri, 7 Jan 2022 12:08:28 +0100 Subject: [PATCH] Add missing TypeVar in vlc_telnet decorator (#63587) --- homeassistant/components/vlc_telnet/media_player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/vlc_telnet/media_player.py b/homeassistant/components/vlc_telnet/media_player.py index 6b53a2c3470..11c96cf9933 100644 --- a/homeassistant/components/vlc_telnet/media_player.py +++ b/homeassistant/components/vlc_telnet/media_player.py @@ -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)