mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Remove entity description mixin in Kraken (#112899)
This commit is contained in:
parent
324fc51375
commit
d82ffb4e07
@ -33,18 +33,13 @@ from .const import (
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class KrakenRequiredKeysMixin:
|
||||
"""Mixin for required keys."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class KrakenSensorEntityDescription(SensorEntityDescription):
|
||||
"""Describes Kraken sensor entity."""
|
||||
|
||||
value_fn: Callable[[DataUpdateCoordinator[KrakenResponse], str], float | int]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class KrakenSensorEntityDescription(SensorEntityDescription, KrakenRequiredKeysMixin):
|
||||
"""Describes Kraken sensor entity."""
|
||||
|
||||
|
||||
SENSOR_TYPES: tuple[KrakenSensorEntityDescription, ...] = (
|
||||
KrakenSensorEntityDescription(
|
||||
key="ask",
|
||||
|
Loading…
x
Reference in New Issue
Block a user