diff --git a/homeassistant/components/github/sensor.py b/homeassistant/components/github/sensor.py index 2d373de56ea..a0e38862471 100644 --- a/homeassistant/components/github/sensor.py +++ b/homeassistant/components/github/sensor.py @@ -23,27 +23,16 @@ from .const import DOMAIN from .coordinator import GitHubDataUpdateCoordinator -@dataclass(frozen=True) -class BaseEntityDescriptionMixin: - """Mixin for required GitHub base description keys.""" +@dataclass(frozen=True, kw_only=True) +class GitHubSensorEntityDescription(SensorEntityDescription): + """Describes GitHub issue sensor entity.""" value_fn: Callable[[dict[str, Any]], StateType] - - -@dataclass(frozen=True) -class BaseEntityDescription(SensorEntityDescription): - """Describes GitHub sensor entity default overrides.""" - icon: str = "mdi:github" attr_fn: Callable[[dict[str, Any]], Mapping[str, Any] | None] = lambda data: None avabl_fn: Callable[[dict[str, Any]], bool] = lambda data: True -@dataclass(frozen=True) -class GitHubSensorEntityDescription(BaseEntityDescription, BaseEntityDescriptionMixin): - """Describes GitHub issue sensor entity.""" - - SENSOR_DESCRIPTIONS: tuple[GitHubSensorEntityDescription, ...] = ( GitHubSensorEntityDescription( key="discussions_count",