Skip to content

Commit

Permalink
Update meross_client.py
Browse files Browse the repository at this point in the history
Restored https:// adding
  • Loading branch information
jeloneal authored Jun 23, 2024
1 parent 9e3dc7a commit c928c63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/octoprint_psucontrol_meross/meross_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ async def login(self, api_base_url: str, user: str, password: str, raise_exc: bo
if restore_success:
self._logger.debug("Restored saved session.")
return True
# if len(api_base_url) > 0 and "https://" not in api_base_url:
# self._logger.info(f"Adding missing \"https://\" prefix to {api_base_url!r}.")
# api_base_url = "https://" + api_base_url.replace("'", "")
if len(api_base_url) > 0 and "https://" not in api_base_url:
self._logger.info(f"Adding missing \"https://\" prefix to {api_base_url!r}.")
api_base_url = "https://" + api_base_url.replace("'", "")
else:
api_base_url = api_base_url
self._logger.info(
Expand Down

0 comments on commit c928c63

Please sign in to comment.