The former pebble employees at Google worked hard to get the OS open source, so I think it’s fair to assume they were hoping for this outcome. And the repebble team (who are the ones"bringing it back") have been working on providing support and keeping the original pebble watches going for years now.
This is also nice because every state doesn’t have to pass this kind of law for it to help everyone else. Companies are often willing to have california specific models of their products to comply with California specific laws, but if enough states have right to repair laws it will hopefully be easier for companies to just have all their products be compliant.