allow https for klaptransport

This commit is contained in:
Teemu Rytilahti 2025-01-03 19:06:16 +01:00
parent 978ed96f96
commit be8a825c19

View File

@ -125,7 +125,8 @@ class KlapTransport(BaseTransport):
self._session_cookie: dict[str, Any] | None = None
_LOGGER.debug("Created KLAP transport for %s", self._host)
self._app_url = URL(f"http://{self._host}:{self._port}/app")
protocol = "https" if config.connection_type.https else "http"
self._app_url = URL(f"{protocol}://{self._host}:{self._port}/app")
self._request_url = self._app_url / "request"
@property