mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Remove gios sensor description required fields mixin (#106174)
This commit is contained in:
parent
aa9f00099d
commit
f0104d6851
@ -42,17 +42,11 @@ from .const import (
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class GiosSensorRequiredKeysMixin:
|
||||
"""Class for GIOS entity required keys."""
|
||||
|
||||
value: Callable[[GiosSensors], StateType]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class GiosSensorEntityDescription(SensorEntityDescription, GiosSensorRequiredKeysMixin):
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class GiosSensorEntityDescription(SensorEntityDescription):
|
||||
"""Class describing GIOS sensor entities."""
|
||||
|
||||
value: Callable[[GiosSensors], StateType]
|
||||
subkey: str | None = None
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user