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(