mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +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
|
from .const import CPU_ICON, DOMAIN
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class GlancesSensorEntityDescriptionMixin:
|
class GlancesSensorEntityDescription(SensorEntityDescription):
|
||||||
"""Mixin for required keys."""
|
"""Describe Glances sensor entity."""
|
||||||
|
|
||||||
type: str
|
type: str
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class GlancesSensorEntityDescription(
|
|
||||||
SensorEntityDescription, GlancesSensorEntityDescriptionMixin
|
|
||||||
):
|
|
||||||
"""Describe Glances sensor entity."""
|
|
||||||
|
|
||||||
|
|
||||||
SENSOR_TYPES = {
|
SENSOR_TYPES = {
|
||||||
("fs", "disk_use_percent"): GlancesSensorEntityDescription(
|
("fs", "disk_use_percent"): GlancesSensorEntityDescription(
|
||||||
key="disk_use_percent",
|
key="disk_use_percent",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user