Remove entity description mixin in Glances (#112772)
This commit is contained in:
parent
59083b4e82
commit
bfd7582825
1 changed files with 3 additions and 10 deletions
|
@ -28,20 +28,13 @@ from . import GlancesDataUpdateCoordinator
|
|||
from .const import CPU_ICON, DOMAIN
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class GlancesSensorEntityDescriptionMixin:
|
||||
"""Mixin for required keys."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class GlancesSensorEntityDescription(SensorEntityDescription):
|
||||
"""Describe Glances sensor entity."""
|
||||
|
||||
type: str
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class GlancesSensorEntityDescription(
|
||||
SensorEntityDescription, GlancesSensorEntityDescriptionMixin
|
||||
):
|
||||
"""Describe Glances sensor entity."""
|
||||
|
||||
|
||||
SENSOR_TYPES = {
|
||||
("fs", "disk_use_percent"): GlancesSensorEntityDescription(
|
||||
key="disk_use_percent",
|
||||
|
|
Loading…
Add table
Reference in a new issue