Though if we steer the conversation towards sovereignity, it bears mentioning that all components of solar installs (inverters, panels, and batteries) tend to be made in China, and afaik just recently they revoked some tax breaks that applied to solar equipment.
According to data from 2021, China produced 79.4 % of all polysilicon (the most energy hungry part of PV production) in the world, 96.8% of all wafers.
https://www.iea.org/reports/solar-pv-global-supply-chains/ex...
So if a country counts on becoming energy sovereign by investing into solar, this really depends on goods relations with China.
Sovereignty doesn't mean autarky. Gas requires continuous resupplying which depends on maintaining relations with foreign countries. Solar requires you to acquire equipment to set it up, but doesn't require an ongoing relationship beyond that. Having invested heavily in solar doesn't give china a veto in your political affairs thereafter, except to the degree they would have one otherwise.