Simple matrix setup failing with user_id error

I have the following very basic Matrix configuration:

matrix:
  homeserver: https://matrix.org
  username: !secret matrix_username
  password: !secret matrix_password

and it fails with this error:

Logger: nio.responses
Source: components/matrix/init.py:409
First occurred: 7:40:59 PM (1 occurrences)
Last logged: 7:40:59 PM
Error validating response: ‘user_id’ is a required property

followed by:

Logger: homeassistant.components.matrix
Source: components/matrix/init.py:413
integration: Matrix (documentation, issues)
First occurred: 7:40:59 PM (1 occurrences)
Last logged: 7:40:59 PM
Login by password failed: M_FORBIDDEN, Invalid username or password

I’m sure my username and password are correct, they work with element. It seems like something fails for the very first login, any idea what?

Also running into this since 10/23/2024

You haven’t indented your yaml.

I made a copy/paste error in my original post, I updated it to have the correct spaces. So that’s not the issue…

I have filed an issue: https://github.com/home-assistant/core/issues/129310