Here are some helpful quotes from Edward Welch on the connection between idolatry and addictions:
The true nature of all addictions is that we have chosen to go outside the boundaries of the kingdom of God and look for blessings in the land of idols. (47)
Addictions are ultimately a disorder of worship. Will we worship ourselves and our own desires or will we worship the true God? (xvi)
Life is about God. It is about worshipping him, trusting him, knowing him, and loving him. The deepest problem for addicts is that they are not worshipping, trusting, knowing, or loving the true God. (102)
If the root problem of addictions is false worship, the answer is knowing the Lord, the One who deserves our worship. (141)