mirror of
https://github.com/home-assistant/core.git
synced 2025-06-02 20:27:14 +00:00
Remove entity description mixin in Awair (#112384)
This commit is contained in:
parent
066f227476
commit
96e582c1b7
@ -50,18 +50,13 @@ from .coordinator import AwairDataUpdateCoordinator, AwairResult
|
||||
DUST_ALIASES = [API_PM25, API_PM10]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class AwairRequiredKeysMixin:
|
||||
"""Mixin for required keys."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class AwairSensorEntityDescription(SensorEntityDescription):
|
||||
"""Describes Awair sensor entity."""
|
||||
|
||||
unique_id_tag: str
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class AwairSensorEntityDescription(SensorEntityDescription, AwairRequiredKeysMixin):
|
||||
"""Describes Awair sensor entity."""
|
||||
|
||||
|
||||
SENSOR_TYPE_SCORE = AwairSensorEntityDescription(
|
||||
key=API_SCORE,
|
||||
native_unit_of_measurement=PERCENTAGE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user