mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Remove TwenteMilieu entity descriptions required fields mixins (#103990)
* Remove TwenteMilieu entity descriptions required fields mixins * Fix doc
This commit is contained in:
parent
a513511936
commit
f24212b66e
@ -21,20 +21,13 @@ from .const import DOMAIN
|
|||||||
from .entity import TwenteMilieuEntity
|
from .entity import TwenteMilieuEntity
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass(kw_only=True)
|
||||||
class TwenteMilieuSensorDescriptionMixin:
|
class TwenteMilieuSensorDescription(SensorEntityDescription):
|
||||||
"""Define an entity description mixin."""
|
"""Describe an Twente Milieu sensor."""
|
||||||
|
|
||||||
waste_type: WasteType
|
waste_type: WasteType
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
|
||||||
class TwenteMilieuSensorDescription(
|
|
||||||
SensorEntityDescription, TwenteMilieuSensorDescriptionMixin
|
|
||||||
):
|
|
||||||
"""Describe an Ambient PWS binary sensor."""
|
|
||||||
|
|
||||||
|
|
||||||
SENSORS: tuple[TwenteMilieuSensorDescription, ...] = (
|
SENSORS: tuple[TwenteMilieuSensorDescription, ...] = (
|
||||||
TwenteMilieuSensorDescription(
|
TwenteMilieuSensorDescription(
|
||||||
key="tree",
|
key="tree",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user