diff --git a/homeassistant/components/vesync/sensor.py b/homeassistant/components/vesync/sensor.py index 87a87f049c2..d594ec5cb82 100644 --- a/homeassistant/components/vesync/sensor.py +++ b/homeassistant/components/vesync/sensor.py @@ -36,19 +36,12 @@ from .const import DEV_TYPE_TO_HA, DOMAIN, SKU_TO_BASE_DEVICE, VS_DISCOVERY, VS_ _LOGGER = logging.getLogger(__name__) -@dataclass(frozen=True) -class VeSyncSensorEntityDescriptionMixin: - """Mixin for required keys.""" +@dataclass(frozen=True, kw_only=True) +class VeSyncSensorEntityDescription(SensorEntityDescription): + """Describe VeSync sensor entity.""" value_fn: Callable[[VeSyncAirBypass | VeSyncOutlet | VeSyncSwitch], StateType] - -@dataclass(frozen=True) -class VeSyncSensorEntityDescription( - SensorEntityDescription, VeSyncSensorEntityDescriptionMixin -): - """Describe VeSync sensor entity.""" - exists_fn: Callable[[VeSyncAirBypass | VeSyncOutlet | VeSyncSwitch], bool] = ( lambda _: True )