Remove unnecessary RainMachine entity description mixins (#108190)
This commit is contained in:
parent
9bbf098901
commit
d5c1049bfe
6 changed files with 40 additions and 90 deletions
|
@ -4,29 +4,8 @@ from dataclasses import dataclass
|
|||
from homeassistant.helpers.entity import EntityDescription
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class RainMachineEntityDescriptionMixinApiCategory:
|
||||
"""Define an entity description mixin to include an API category."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class RainMachineEntityDescription(EntityDescription):
|
||||
"""Describe a RainMachine entity."""
|
||||
|
||||
api_category: str
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class RainMachineEntityDescriptionMixinDataKey:
|
||||
"""Define an entity description mixin to include a data payload key."""
|
||||
|
||||
data_key: str
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class RainMachineEntityDescriptionMixinUid:
|
||||
"""Define an entity description mixin to include an activity UID."""
|
||||
|
||||
uid: int
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class RainMachineEntityDescription(
|
||||
EntityDescription, RainMachineEntityDescriptionMixinApiCategory
|
||||
):
|
||||
"""Describe a RainMachine entity."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue