From 693fd422b297aa15923752731c7036e399a923b1 Mon Sep 17 00:00:00 2001 From: jalcaras Date: Wed, 21 Jun 2023 13:26:52 +0200 Subject: [PATCH] add warning about WeBack discontinuation service --- custom_components/weback_vacuum/webackapi.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/custom_components/weback_vacuum/webackapi.py b/custom_components/weback_vacuum/webackapi.py index 8f7c704..d116146 100644 --- a/custom_components/weback_vacuum/webackapi.py +++ b/custom_components/weback_vacuum/webackapi.py @@ -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 @@ -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: @@ -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"}