Cleanup Plenticore switch entity (#78878)

This commit is contained in:
epenet 2022-09-21 13:46:43 +02:00 committed by GitHub
parent cf3b5ff7f9
commit e58dd6df95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,6 @@
"""Platform for Kostal Plenticore switches."""
from __future__ import annotations
from abc import ABC
from dataclasses import dataclass
from datetime import timedelta
import logging
@ -97,7 +96,9 @@ async def async_setup_entry(
async_add_entities(entities)
class PlenticoreDataSwitch(CoordinatorEntity, SwitchEntity, ABC):
class PlenticoreDataSwitch(
CoordinatorEntity[SettingDataUpdateCoordinator], SwitchEntity
):
"""Representation of a Plenticore Switch."""
_attr_entity_category = EntityCategory.CONFIG