From c928c63d55d2cc397977bba71b09df48ac69d4c6 Mon Sep 17 00:00:00 2001 From: jeloneal <48490942+jeloneal@users.noreply.github.com> Date: Sun, 23 Jun 2024 12:27:08 +0200 Subject: [PATCH] Update meross_client.py Restored https:// adding --- src/octoprint_psucontrol_meross/meross_client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/octoprint_psucontrol_meross/meross_client.py b/src/octoprint_psucontrol_meross/meross_client.py index cb71656..6c1db72 100644 --- a/src/octoprint_psucontrol_meross/meross_client.py +++ b/src/octoprint_psucontrol_meross/meross_client.py @@ -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(