Not quite the same, a solar panel installed doesn’t disappear if China changes their stance.
But there is some valid concern around internet-connected PV / battery power electronics getting bricked remotely.
It can stop working properly if the chinese panel is encryption locked to a chinese cloud which is the case with many residential installations.
Not the panel itself, but the firmware of the solar panel charge controller and inverter that's connected to the Internet because there's an app to monitor the system. I wouldn't bet that there aren't remote kill switches deep inside that firmware.
> solar panel installed doesn’t disappear if China changes their stance
Most countries have days to, at most, months of imports of oil in reserve. In contrast, a panel embargo wouldn’t have disastrous effects for years. But reliance it is the same. If you’re dependent on Chinese panels, China can cap your energy growth at whim. The degradation will be slow thereafter, but present nevertheless.
Using foreign panels for anything other than bootstrapping domestic or allied production would be the EU repeating its follies first with Russia and then with American LNG.