Fix unifiprotect TypeVar inheritance (#70782)

This commit is contained in:
Marc Mueller 2022-04-26 19:15:47 +02:00 committed by GitHub
parent abdf5bb86a
commit a5fa40180c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 10 deletions

View file

@ -3,7 +3,7 @@ from __future__ import annotations
from dataclasses import dataclass
import logging
from typing import Any, Generic
from typing import Any
from pyunifiprotect.data import Camera, RecordingMode, VideoMode
from pyunifiprotect.data.base import ProtectAdoptableDeviceModel
@ -24,7 +24,7 @@ _LOGGER = logging.getLogger(__name__)
@dataclass
class ProtectSwitchEntityDescription(
ProtectSetableKeysMixin, SwitchEntityDescription, Generic[T]
ProtectSetableKeysMixin[T], SwitchEntityDescription
):
"""Describes UniFi Protect Switch entity."""