Remove unnecessary Ambient PWS entity description mixins (#108191)
This commit is contained in:
parent
e553cf2241
commit
9bbf098901
1 changed files with 3 additions and 10 deletions
|
@ -63,20 +63,13 @@ TYPE_RELAY8 = "relay8"
|
|||
TYPE_RELAY9 = "relay9"
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class AmbientBinarySensorDescriptionMixin:
|
||||
"""Define an entity description mixin for binary sensors."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class AmbientBinarySensorDescription(BinarySensorEntityDescription):
|
||||
"""Describe an Ambient PWS binary sensor."""
|
||||
|
||||
on_state: Literal[0, 1]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class AmbientBinarySensorDescription(
|
||||
BinarySensorEntityDescription, AmbientBinarySensorDescriptionMixin
|
||||
):
|
||||
"""Describe an Ambient PWS binary sensor."""
|
||||
|
||||
|
||||
BINARY_SENSOR_DESCRIPTIONS = (
|
||||
AmbientBinarySensorDescription(
|
||||
key=TYPE_BATTOUT,
|
||||
|
|
Loading…
Add table
Reference in a new issue