Related to the Sonos story of a couple of weeks ago. And many others. It's not just the software-based nature of modern products; it's also the online nature of them. If it was just firmware in a ROM chip, you could keep the old one (or dump the original code to a backup) and reinstall it if the new one didn't work. Instead, we have things getting "updated" automatically and silently, and devices whether by accident or intent being destroyed (no longer functioning, for the intended purpose or often at all).
Then there's the extra avenue for destruction if an app is required to control it: the app doesn't communicate with the device; it communicates with a server someplace which communicates with the device. So if the server dies (intentionally or otherwise) or the company goes out of business (gamers have seen this many times) your device (or game) is toast. A brick. Local communications, or a way to control the device without communications, are needed.
I suspect that a "right to repair" law is needed, but it needs to go beyond that. If you purchase a physical device, the function for which it was purchased should continue to work even if communication is interrupted, updates need to be offered with enough information to evaluate whether and how to apply them, and a manufacturer must have a legal responsibility to avoid bricking devices. If bricking occurs due to company action, intended or not, the company should have a permanent responsibility to fix or replace the device absent evidence of unauthorized modifications. Google shipping replacements is nice, but they are doing it for PR purposes not because they have to. Somebody else might just say, "out of warranty, tough luck," and get away with it because Terms of Use, Arbitration Clause, etc.