Update pylint to 2.15.0 (#77408)
* Update pylint to 2.15.0 * Remove useless suppressions * Fix TypeVar name
This commit is contained in:
parent
0caf998547
commit
1210897f83
7 changed files with 19 additions and 22 deletions
|
@ -18,22 +18,22 @@ from homeassistant.helpers.entity import EntityCategory
|
|||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
||||
|
||||
from . import NextDnsSettingsUpdateCoordinator, TCoordinatorData
|
||||
from . import CoordinatorDataT, NextDnsSettingsUpdateCoordinator
|
||||
from .const import ATTR_SETTINGS, DOMAIN
|
||||
|
||||
PARALLEL_UPDATES = 1
|
||||
|
||||
|
||||
@dataclass
|
||||
class NextDnsSwitchRequiredKeysMixin(Generic[TCoordinatorData]):
|
||||
class NextDnsSwitchRequiredKeysMixin(Generic[CoordinatorDataT]):
|
||||
"""Class for NextDNS entity required keys."""
|
||||
|
||||
state: Callable[[TCoordinatorData], bool]
|
||||
state: Callable[[CoordinatorDataT], bool]
|
||||
|
||||
|
||||
@dataclass
|
||||
class NextDnsSwitchEntityDescription(
|
||||
SwitchEntityDescription, NextDnsSwitchRequiredKeysMixin[TCoordinatorData]
|
||||
SwitchEntityDescription, NextDnsSwitchRequiredKeysMixin[CoordinatorDataT]
|
||||
):
|
||||
"""NextDNS switch entity description."""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue