mirror of
https://github.com/home-assistant/core.git
synced 2025-07-05 20:37:16 +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)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class BalboaBinarySensorEntityDescriptionMixin:
|
||||
"""Mixin for required keys."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class BalboaBinarySensorEntityDescription(BinarySensorEntityDescription):
|
||||
"""A class that describes Balboa binary sensor entities."""
|
||||
|
||||
is_on_fn: Callable[[SpaClient], bool]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class BalboaBinarySensorEntityDescription(
|
||||
BinarySensorEntityDescription, BalboaBinarySensorEntityDescriptionMixin
|
||||
):
|
||||
"""A class that describes Balboa binary sensor entities."""
|
||||
|
||||
|
||||
BINARY_SENSOR_DESCRIPTIONS = (
|
||||
BalboaBinarySensorEntityDescription(
|
||||
key="Filter1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user