mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
Cleanup Plenticore switch entity (#78878)
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
"""Platform for Kostal Plenticore switches."""
|
"""Platform for Kostal Plenticore switches."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from abc import ABC
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
@@ -97,7 +96,9 @@ async def async_setup_entry(
|
|||||||
async_add_entities(entities)
|
async_add_entities(entities)
|
||||||
|
|
||||||
|
|
||||||
class PlenticoreDataSwitch(CoordinatorEntity, SwitchEntity, ABC):
|
class PlenticoreDataSwitch(
|
||||||
|
CoordinatorEntity[SettingDataUpdateCoordinator], SwitchEntity
|
||||||
|
):
|
||||||
"""Representation of a Plenticore Switch."""
|
"""Representation of a Plenticore Switch."""
|
||||||
|
|
||||||
_attr_entity_category = EntityCategory.CONFIG
|
_attr_entity_category = EntityCategory.CONFIG
|
||||||
|
Reference in New Issue
Block a user