Skip to content

Commit

Permalink
add warning about WeBack discontinuation service
Browse files Browse the repository at this point in the history
  • Loading branch information
jalcaras authored and jalcaras committed Jun 21, 2023
1 parent 5576690 commit 693fd42
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions custom_components/weback_vacuum/webackapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ async def login(self) -> bool:
if resp is None:
_LOGGER.error(
"WebackApi login failed, server sent an empty answer, "
"check your 'calling code' in your configuration.yaml"
"please check repo's README.md about WeBack's discontinuation service"
)
return False

Expand All @@ -124,13 +124,14 @@ async def login(self) -> bool:
# Wrong APP
_LOGGER.error(
"WebackApi login failed, application is not recognized, "
"try to change 'application' field (this field is case sensitive) in your configuration.yaml"
"please check repo's README.md about WeBack's discontinuation service"
)
return False
if result_msg == USER_NOT_EXIST:
# User NOK
_LOGGER.error(
"WebackApi login failed, user does not exist, check your login and your area code?"
"WebackApi login failed, user does not exist "
"please check repo's README.md about WeBack's discontinuation service"
)
return False
if result_msg == PASSWORD_NOK:
Expand Down Expand Up @@ -290,7 +291,11 @@ async def send_http(url, **params):
attempt,
N_RETRY,
)
_LOGGER.error("WebackApi : HTTP error after %s retry", N_RETRY)
_LOGGER.error(
"WebackApi : HTTP error after %s retry please check repo's "
"README.md about WeBack's discontinuation service",
N_RETRY,
)
return {"msg": "error", "details": f"Failed after {N_RETRY} retry"}


Expand Down

0 comments on commit 693fd42

Please sign in to comment.