async def _async_service_remove_link(hass: HomeAssistant, service: ServiceCall) -> None:
    """Service to call the removeLink method for link removal on a Homematic(IP) Local connection."""
    sender_channel_address = service.data[CONF_SENDER_CHANNEL_ADDRESS]
    receiver_channel_address = service.data[CONF_RECEIVER_CHANNEL_ADDRESS]

    if hm_device := _async_get_hm_device_by_service_data(hass=hass, service=service):
        try:
            await hm_device.client.remove_link(
                sender_address=sender_channel_address,
                receiver_address=receiver_channel_address,
            )
        except BaseHomematicException as ex:
            raise HomeAssistantError(ex) from ex
        _LOGGER.debug("Called remove_link")
Service to call the removeLink method for link removal on a Homematic(IP) Local connection.
custom_components/homematicip_local/services.py