Home assistant 2026.6.x docker start problems: name 'er' is not defined

Hi all!

I'm running home assistant in podman and it has run without a glitch for all versions before 2026.6.0, but when I tried to upgrade to any 2026.6.x version the container starts and then stops in a loop with the following error:

File "/usr/src/homeassistant/homeassistant/auth/permissions/models.py", line 15, in annotate
entity_registry: er.EntityRegistry = attr.ib()
^^
NameError: name 'er' is not defined
[15:32:32] INFO: Home Assistant Core finish process exit code 1
[15:32:32] INFO: Home Assistant Core service shutdown

I have tried with all 2026.6.x versions but all of them give the same error. Any hints on where to look for a fix?

Thanks!
/Nacho