From 39bfb2b5baebd1b5e51a93240adf70df450303bc Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Mon, 11 Mar 2024 11:53:40 +0100 Subject: [PATCH] Remove entity description mixin in Venstar (#112964) --- homeassistant/components/venstar/sensor.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/homeassistant/components/venstar/sensor.py b/homeassistant/components/venstar/sensor.py index 8b0dbc7a7e6..c06816ad0af 100644 --- a/homeassistant/components/venstar/sensor.py +++ b/homeassistant/components/venstar/sensor.py @@ -66,20 +66,15 @@ SCHEDULE_PARTS: dict[int, str] = { } -@dataclass(frozen=True) -class VenstarSensorTypeMixin: - """Mixin for sensor required keys.""" +@dataclass(frozen=True, kw_only=True) +class VenstarSensorEntityDescription(SensorEntityDescription): + """Base description of a Sensor entity.""" value_fn: Callable[[VenstarDataUpdateCoordinator, str], Any] name_fn: Callable[[str], str] uom_fn: Callable[[Any], str | None] -@dataclass(frozen=True) -class VenstarSensorEntityDescription(SensorEntityDescription, VenstarSensorTypeMixin): - """Base description of a Sensor entity.""" - - async def async_setup_entry( hass: HomeAssistant, config_entry: ConfigEntry,