Apparantly, HA 2022.3 got some internally changes (and therefore probably not mentioned in the breaking changes)
The people supporting the pyscript project, are looking to it (even have a fix for “the brave”)
(it comes down to making changes in the source of state.py)