from typing import Any


def _rebase_entity_dict(
    entity_dict: str, group: dict[str, Any], base_channel_no: int
) -> dict[int, Any]:
    """Rebase entity_dict with base_channel_no."""
    new_fields = {}
    if fields := group.get(entity_dict):
        for channel_no, field in fields.items():
            new_fields[channel_no + base_channel_no] = field
    return new_fields