mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Remove entity description mixin in Glances (#112772)
This commit is contained in:
parent
59083b4e82
commit
bfd7582825
@ -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…
x
Reference in New Issue
Block a user