That's easy to say, but hard to legislate, and impossible to enforce.
There is so much firmware around, small binary blobs burned into micro controllers that can't even be updated. Or that isn't intended to be updated.
There are probably even dimmable LED bulbs without IoT features that still have a microcontroller.
Because a tiny microcontroller is the cheapest way to add logic to anything.
I'm not sure it isn't a good idea. Just not sure we grasp the ramifications.