mirror of
https://github.com/home-assistant/core.git
synced 2026-09-04 02:34:40 -05:00
Remove entity description mixin in Glances (#112772)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user