def control_config(hass: HomeAssistant, entry_data_v2) -> ControlConfig:
    """Create a config for the control unit."""
    return ControlConfig(
        hass=hass,
        entry_id=const.CONFIG_ENTRY_ID,
        data=entry_data_v2,
        default_port=const.DEFAULT_CALLBACK_PORT,
    )
Create a config for the control unit.
tests/conftest.py