Remove entity description mixin in Kaiterra (#112895)

pull/113054/head
Joost Lekkerkerker 2024-03-11 11:28:26 +01:00 committed by GitHub
parent d9996d3add
commit 1fa0ce2f2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 10 deletions

View File

@ -18,20 +18,13 @@ from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
from .const import DISPATCHER_KAITERRA, DOMAIN
@dataclass(frozen=True)
class KaiterraSensorRequiredKeysMixin:
"""Mixin for required keys."""
@dataclass(frozen=True, kw_only=True)
class KaiterraSensorEntityDescription(SensorEntityDescription):
"""Class describing Renault sensor entities."""
suffix: str
@dataclass(frozen=True)
class KaiterraSensorEntityDescription(
SensorEntityDescription, KaiterraSensorRequiredKeysMixin
):
"""Class describing Renault sensor entities."""
SENSORS = [
KaiterraSensorEntityDescription(
suffix="Temperature",