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"
|
TYPE_RELAY9 = "relay9"
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class AmbientBinarySensorDescriptionMixin:
|
class AmbientBinarySensorDescription(BinarySensorEntityDescription):
|
||||||
"""Define an entity description mixin for binary sensors."""
|
"""Describe an Ambient PWS binary sensor."""
|
||||||
|
|
||||||
on_state: Literal[0, 1]
|
on_state: Literal[0, 1]
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class AmbientBinarySensorDescription(
|
|
||||||
BinarySensorEntityDescription, AmbientBinarySensorDescriptionMixin
|
|
||||||
):
|
|
||||||
"""Describe an Ambient PWS binary sensor."""
|
|
||||||
|
|
||||||
|
|
||||||
BINARY_SENSOR_DESCRIPTIONS = (
|
BINARY_SENSOR_DESCRIPTIONS = (
|
||||||
AmbientBinarySensorDescription(
|
AmbientBinarySensorDescription(
|
||||||
key=TYPE_BATTOUT,
|
key=TYPE_BATTOUT,
|
||||||
|
|
Loading…
Add table
Reference in a new issue