eero-api 8.4.2__tar.gz → 8.4.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {eero_api-8.4.2/src/eero_api.egg-info → eero_api-8.4.3}/PKG-INFO +1 -1
- {eero_api-8.4.2 → eero_api-8.4.3}/pyproject.toml +2 -2
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/__init__.py +1 -1
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/sqm.py +20 -20
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/client.py +8 -7
- {eero_api-8.4.2 → eero_api-8.4.3/src/eero_api.egg-info}/PKG-INFO +1 -1
- {eero_api-8.4.2 → eero_api-8.4.3}/LICENSE +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/README.md +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/setup.cfg +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/setup.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/__init__.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/_params.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/_writes.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/ac_compat.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/account.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/auth.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/auth_storage.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/backup.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/backup_access_points.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/base.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/blacklist.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/burst_reporters.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/data_usage.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/ddns.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/devices.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/dhcp.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/diagnostics.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/dns.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/dns_policies.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/eeros.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/entitlements.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/events.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/forwards.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/insights.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/links.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/members.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/networks.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/notifications.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/ouicheck.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/permissions.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/power_saving.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/profiles.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/reservations.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/routing.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/schedule.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/security.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/subnets.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/support.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/thread.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/transfer.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/updates.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/wan.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/wpa3.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/const.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/errors.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/exceptions.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/logging.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/py.typed +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero_api.egg-info/SOURCES.txt +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero_api.egg-info/dependency_links.txt +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero_api.egg-info/requires.txt +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/src/eero_api.egg-info/top_level.txt +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/tests/test_errors.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/tests/test_exceptions.py +0 -0
- {eero_api-8.4.2 → eero_api-8.4.3}/tests/test_logging.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "eero-api"
|
|
7
|
-
version = "8.4.
|
|
7
|
+
version = "8.4.3"
|
|
8
8
|
description = "Modern async Python client for Eero network management"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.12"
|
|
@@ -121,7 +121,7 @@ asyncio_mode = "auto"
|
|
|
121
121
|
|
|
122
122
|
[tool.commitizen]
|
|
123
123
|
name = "cz_conventional_commits"
|
|
124
|
-
version = "8.4.
|
|
124
|
+
version = "8.4.3"
|
|
125
125
|
version_files = [
|
|
126
126
|
"pyproject.toml:project.version",
|
|
127
127
|
"src/eero/__init__.py:__version__",
|
|
@@ -4,8 +4,8 @@ IMPORTANT: This module returns RAW responses from the Eero Cloud API.
|
|
|
4
4
|
All data extraction, field mapping, and transformation must be done by downstream clients.
|
|
5
5
|
|
|
6
6
|
SQM is a single boolean toggle on the network's ``settings`` resource,
|
|
7
|
-
written as a
|
|
8
|
-
per-direction bandwidth limits or an explicit "auto" mode.
|
|
7
|
+
written as a flat JSON body (``{"sqm": true}``) -- there is no API counterpart
|
|
8
|
+
for per-direction bandwidth limits or an explicit "auto" mode.
|
|
9
9
|
"""
|
|
10
10
|
|
|
11
11
|
from typing import Any, Dict, Mapping, Optional
|
|
@@ -13,7 +13,7 @@ from typing import Any, Dict, Mapping, Optional
|
|
|
13
13
|
from ..const import API_ENDPOINT
|
|
14
14
|
from ..exceptions import EeroAuthenticationException
|
|
15
15
|
from ..logging import get_secure_logger
|
|
16
|
-
from ._writes import as_envelope
|
|
16
|
+
from ._writes import as_envelope
|
|
17
17
|
from .auth import AuthAPI
|
|
18
18
|
from .base import AuthenticatedAPI
|
|
19
19
|
from .links import Envelope, resource_url, self_url, sub_resource_url
|
|
@@ -81,17 +81,21 @@ class SqmAPI(AuthenticatedAPI):
|
|
|
81
81
|
) -> Dict[str, Any]:
|
|
82
82
|
"""Enable or disable SQM (Smart Queue Management) - returns raw Eero API response.
|
|
83
83
|
|
|
84
|
-
Issues a PUT
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
..
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
84
|
+
Issues a PUT to the network's ``settings`` link with a flat JSON
|
|
85
|
+
body, ``{"sqm": <bool>}``. The response is the full network
|
|
86
|
+
envelope, with the new value under ``data.sqm``.
|
|
87
|
+
|
|
88
|
+
.. note::
|
|
89
|
+
Live-verified 2026-12-01 by read-back of the network's ``sqm``
|
|
90
|
+
field: ``{"sqm": true}`` flipped it to true and ``{"sqm": false}``
|
|
91
|
+
restored it, each confirmed seconds and minutes after the write.
|
|
92
|
+
The earlier query-parameter form (``?sqm=true`` with no body)
|
|
93
|
+
returned 200 without applying anything, which is why it was
|
|
94
|
+
replaced. No node rebooted in that verification (one network, so
|
|
95
|
+
not a guarantee): settings-class writes elsewhere in this API
|
|
96
|
+
have restarted the mesh, so read `get_sqm_settings` first, only
|
|
97
|
+
write when the stored value differs from the desired one, and
|
|
98
|
+
never retry in a loop.
|
|
95
99
|
|
|
96
100
|
Args:
|
|
97
101
|
network_id: A bare network ID, API-returned path, or absolute URL.
|
|
@@ -114,9 +118,5 @@ class SqmAPI(AuthenticatedAPI):
|
|
|
114
118
|
url = sub_resource_url(
|
|
115
119
|
network_id, "networks/{id}/settings", link="settings", parent=as_envelope(parent)
|
|
116
120
|
)
|
|
117
|
-
|
|
118
|
-
return await self.put(
|
|
119
|
-
url,
|
|
120
|
-
auth_token=auth_token,
|
|
121
|
-
params={"sqm": "true" if enabled else "false"},
|
|
122
|
-
)
|
|
121
|
+
_LOGGER.debug("Setting SQM to %s for network %s", enabled, network_id)
|
|
122
|
+
return await self.put(url, auth_token=auth_token, json={"sqm": bool(enabled)})
|
|
@@ -2919,13 +2919,14 @@ class EeroClient:
|
|
|
2919
2919
|
async def set_sqm(self, enabled: bool, network_id: Optional[str] = None) -> Dict[str, Any]:
|
|
2920
2920
|
"""Enable or disable SQM (Smart Queue Management) - returns raw Eero API response.
|
|
2921
2921
|
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2922
|
+
Sends a flat JSON body ``{"sqm": <bool>}`` to the network's
|
|
2923
|
+
``settings`` link; live-verified 2026-12-01 by read-back of the
|
|
2924
|
+
network's ``sqm`` field (the query-parameter form returned 200
|
|
2925
|
+
without applying). No node rebooted in that verification (one
|
|
2926
|
+
network, not a guarantee), but settings-class writes elsewhere in
|
|
2927
|
+
this API have restarted the mesh: read `get_sqm_settings` first,
|
|
2928
|
+
only write when the stored value differs from the desired one, and
|
|
2929
|
+
never retry in a loop.
|
|
2929
2930
|
"""
|
|
2930
2931
|
network_id = await self._ensure_network_id(network_id, auto_discover=False)
|
|
2931
2932
|
response = await self._api.sqm.set_sqm(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|