async def _async_service_get_paramset(hass: HomeAssistant, service: ServiceCall) -> ServiceResponse:
    """Service to call the getParamset method on a Homematic(IP) Local connection."""
    channel_no = service.data.get(CONF_CHANNEL)
    paramset_key = ParamsetKey(service.data[CONF_PARAMSET_KEY])

    if hm_device := _async_get_hm_device_by_service_data(hass=hass, service=service):
        address = f"{hm_device.address}:{channel_no}" if channel_no is not None else hm_device.address
        try:
            return dict(
                await hm_device.client.get_paramset(
                    address=address,
                    paramset_key=paramset_key,
                )
            )
        except BaseHomematicException as ex:
            raise HomeAssistantError(ex) from ex
    return None
Service to call the getParamset method on a Homematic(IP) Local connection.
custom_components/homematicip_local/services.py