Describe The Bug:
When an account with Husqvarna gets locked out, the application seems like the issue is with the user credentials rather than an issue with the account from Husqvarna.
To Reproduce:
Given a plug-in instance which is in use
When the plug-in attempts to login to Husqvarna again, and the account is locked out
Then the application throws an error with the message: "The credentials supplied were not valid, please check your configuration and try again."
Expected behavior:
The error should identify the account has been locked, rather than identifying the credentials were wrong.
Logs:
[11/6/2022, 4:13:57 PM] [Homebridge Automower Platform] Received response: 0a0709d9-5d08-46ed-a80c-621f39923f38
{"status":400,"statusText":"Bad Request","body":{"error":"invalid_request","error_description":"Blocked for too many login-attempts","error_code":"user.is.blocked"}}
[11/6/2022, 4:13:57 PM] [Homebridge Automower Platform] The credentials supplied were not valid, please check your configuration and try again.
Describe The Bug: When an account with Husqvarna gets locked out, the application seems like the issue is with the user credentials rather than an issue with the account from Husqvarna.
To Reproduce:
Expected behavior: The error should identify the account has been locked, rather than identifying the credentials were wrong.
Logs:
Environment: