From e58dd6df95207f4a6ed9bb49eebd0c708a6e9094 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 21 Sep 2022 13:46:43 +0200 Subject: [PATCH] Cleanup Plenticore switch entity (#78878) --- homeassistant/components/kostal_plenticore/switch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/kostal_plenticore/switch.py b/homeassistant/components/kostal_plenticore/switch.py index c1498132925..90ac26ef947 100644 --- a/homeassistant/components/kostal_plenticore/switch.py +++ b/homeassistant/components/kostal_plenticore/switch.py @@ -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