We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 602a036 commit 2328dbfCopy full SHA for 2328dbf
glances_api/__init__.py
@@ -18,14 +18,19 @@ def __init__(
18
self,
19
host: str = "localhost",
20
port: int = 61208,
21
- version: int = 2,
+ version: int = 3,
22
ssl: bool = False,
23
verify_ssl: bool = True,
24
username: str | None = None,
25
password: str | None = None,
26
httpx_client: httpx.AsyncClient | None = None,
27
):
28
"""Initialize the connection."""
29
+ if version == 2:
30
+ _LOGGER.warning(
31
+ "Glances api older than v3 will not be supported in the next release."
32
+ )
33
+
34
schema = "https" if ssl else "http"
35
self.url = f"{schema}://{host}:{port}/api/{version}"
36
self.data: dict[str, Any] = {}
0 commit comments