core: Problem with user names containing spaces in Synology DSM
The problem
After upgrading from HA Core 2023.1.7 to 2022.2.0 or above I get the following error message for my Synology DSM integration: {‘api’: ‘SYNO.API.Auth’, ‘code’: 400, ‘reason’: ‘Invalid credentials’, ‘details’: ‘Invalid password or not admin account: Home Assistant VM’} 12:42:08 PM – (ERROR) Synology DSM Reauthenticating the integration is impossible.
When deleting the integration, I am unable to add it again. However, downgrading again to HA Core 2023.1.7 solves the issue. Please note that the credentials are correct and that Home Assistant VM is an admin account. This account has never caused issues before.
Could you please inform me if I am doing something wrong or how I can solve the issue?
I am running the latest version of DSM 6.2 with 2FA.
Thanks in advance.
Kind regards,
Robin
What version of Home Assistant Core has the issue?
2023.2.0 and above
What was the last working version of Home Assistant Core?
2023.1.7
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Synology DSM
Link to integration documentation on our website
https://www.home-assistant.io/integrations/synology_dsm/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.components.synology_dsm.config_flow
Source: components/synology_dsm/config_flow.py:345
Integration: Synology DSM (documentation, issues)
First occurred: 12:42:08 PM (1 occurrences)
Last logged: 12:42:08 PM
{'api': 'SYNO.API.Auth', 'code': 400, 'reason': 'Invalid credentials', 'details': 'Invalid password or not admin account: Home Assistant VM'}
Additional information
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 16 (5 by maintainers)
I have the same issue with the latest version of Home Assistant.
Workaround: I create a new admin account just for home assistant with 2FA enabled, without spaces in username. It is working with 2023.2.2
Here you are: home-assistant_2023-1-7.log
The log starts when I add the integration and login. After login I type the 2FA code and everything works fine.
Here you are:
home-assistant.log