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.
Files changed (65) hide show
  1. {eero_api-8.4.2/src/eero_api.egg-info → eero_api-8.4.3}/PKG-INFO +1 -1
  2. {eero_api-8.4.2 → eero_api-8.4.3}/pyproject.toml +2 -2
  3. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/__init__.py +1 -1
  4. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/sqm.py +20 -20
  5. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/client.py +8 -7
  6. {eero_api-8.4.2 → eero_api-8.4.3/src/eero_api.egg-info}/PKG-INFO +1 -1
  7. {eero_api-8.4.2 → eero_api-8.4.3}/LICENSE +0 -0
  8. {eero_api-8.4.2 → eero_api-8.4.3}/README.md +0 -0
  9. {eero_api-8.4.2 → eero_api-8.4.3}/setup.cfg +0 -0
  10. {eero_api-8.4.2 → eero_api-8.4.3}/setup.py +0 -0
  11. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/__init__.py +0 -0
  12. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/_params.py +0 -0
  13. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/_writes.py +0 -0
  14. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/ac_compat.py +0 -0
  15. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/account.py +0 -0
  16. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/auth.py +0 -0
  17. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/auth_storage.py +0 -0
  18. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/backup.py +0 -0
  19. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/backup_access_points.py +0 -0
  20. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/base.py +0 -0
  21. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/blacklist.py +0 -0
  22. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/burst_reporters.py +0 -0
  23. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/data_usage.py +0 -0
  24. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/ddns.py +0 -0
  25. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/devices.py +0 -0
  26. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/dhcp.py +0 -0
  27. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/diagnostics.py +0 -0
  28. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/dns.py +0 -0
  29. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/dns_policies.py +0 -0
  30. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/eeros.py +0 -0
  31. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/entitlements.py +0 -0
  32. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/events.py +0 -0
  33. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/forwards.py +0 -0
  34. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/insights.py +0 -0
  35. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/links.py +0 -0
  36. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/members.py +0 -0
  37. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/networks.py +0 -0
  38. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/notifications.py +0 -0
  39. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/ouicheck.py +0 -0
  40. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/permissions.py +0 -0
  41. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/power_saving.py +0 -0
  42. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/profiles.py +0 -0
  43. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/reservations.py +0 -0
  44. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/routing.py +0 -0
  45. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/schedule.py +0 -0
  46. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/security.py +0 -0
  47. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/subnets.py +0 -0
  48. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/support.py +0 -0
  49. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/thread.py +0 -0
  50. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/transfer.py +0 -0
  51. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/updates.py +0 -0
  52. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/wan.py +0 -0
  53. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/api/wpa3.py +0 -0
  54. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/const.py +0 -0
  55. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/errors.py +0 -0
  56. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/exceptions.py +0 -0
  57. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/logging.py +0 -0
  58. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero/py.typed +0 -0
  59. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero_api.egg-info/SOURCES.txt +0 -0
  60. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero_api.egg-info/dependency_links.txt +0 -0
  61. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero_api.egg-info/requires.txt +0 -0
  62. {eero_api-8.4.2 → eero_api-8.4.3}/src/eero_api.egg-info/top_level.txt +0 -0
  63. {eero_api-8.4.2 → eero_api-8.4.3}/tests/test_errors.py +0 -0
  64. {eero_api-8.4.2 → eero_api-8.4.3}/tests/test_exceptions.py +0 -0
  65. {eero_api-8.4.2 → eero_api-8.4.3}/tests/test_logging.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eero-api
3
- Version: 8.4.2
3
+ Version: 8.4.3
4
4
  Summary: Modern async Python client for Eero network management
5
5
  Author: Eero API Contributors
6
6
  Maintainer: Eero API Contributors
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "eero-api"
7
- version = "8.4.2"
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.2"
124
+ version = "8.4.3"
125
125
  version_files = [
126
126
  "pyproject.toml:project.version",
127
127
  "src/eero/__init__.py:__version__",
@@ -53,4 +53,4 @@ __all__ = [
53
53
  "redact_sensitive",
54
54
  ]
55
55
 
56
- __version__ = "8.4.2"
56
+ __version__ = "8.4.3"
@@ -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 query parameter with no body -- there is no API counterpart for
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, warn_uncharacterised_write
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 with no request body to the network's ``settings``
85
- link, carrying the new value as the ``sqm`` query parameter
86
- (``true``/``false``).
87
-
88
- .. warning::
89
- This is a settings-class write: it has not been confirmed
90
- against a live network, and -- like other writes to this
91
- endpoint -- may trigger a mesh reboot. Follow the
92
- read-compare-skip discipline: read `get_sqm_settings` first, and
93
- only issue this write when the stored value differs from the
94
- desired one. Never retry on failure.
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
- warn_uncharacterised_write(_LOGGER, "set SQM for network")
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
- .. warning::
2923
- This is a settings-class write: it has not been confirmed
2924
- against a live network, and -- like other writes to this
2925
- endpoint -- may trigger a mesh reboot. Follow the
2926
- read-compare-skip discipline: read `get_sqm_settings` first, and
2927
- only issue this write when the stored value differs from the
2928
- desired one. Never retry on failure.
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(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eero-api
3
- Version: 8.4.2
3
+ Version: 8.4.3
4
4
  Summary: Modern async Python client for Eero network management
5
5
  Author: Eero API Contributors
6
6
  Maintainer: Eero API Contributors
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