mirror of
https://github.com/home-assistant/core.git
synced 2025-07-04 20:07:10 +00:00
Remove entity description mixin in Balboa (#112389)
This commit is contained in:
parent
b0011d903e
commit
7cef704220
@ -33,20 +33,13 @@ async def async_setup_entry(
|
|||||||
async_add_entities(entities)
|
async_add_entities(entities)
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class BalboaBinarySensorEntityDescriptionMixin:
|
class BalboaBinarySensorEntityDescription(BinarySensorEntityDescription):
|
||||||
"""Mixin for required keys."""
|
"""A class that describes Balboa binary sensor entities."""
|
||||||
|
|
||||||
is_on_fn: Callable[[SpaClient], bool]
|
is_on_fn: Callable[[SpaClient], bool]
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class BalboaBinarySensorEntityDescription(
|
|
||||||
BinarySensorEntityDescription, BalboaBinarySensorEntityDescriptionMixin
|
|
||||||
):
|
|
||||||
"""A class that describes Balboa binary sensor entities."""
|
|
||||||
|
|
||||||
|
|
||||||
BINARY_SENSOR_DESCRIPTIONS = (
|
BINARY_SENSOR_DESCRIPTIONS = (
|
||||||
BalboaBinarySensorEntityDescription(
|
BalboaBinarySensorEntityDescription(
|
||||||
key="Filter1",
|
key="Filter1",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user