docs(system): firmware_version is the version on offer
driver / standard (pull_request) Successful in 17s
driver / lint (pull_request) Successful in 15s
driver / types (pull_request) Successful in 1m10s
driver / test (3.12) (pull_request) Successful in 6m21s
driver / test (3.13) (pull_request) Successful in 6m13s
driver / lowest (pull_request) Successful in 5m44s
driver / build (pull_request) Successful in 30s
driver / security (pull_request) Successful in 1m13s
CI / driver (pull_request) Successful in 8m6s
driver / publish (pull_request) Skipped
driver / standard (pull_request) Successful in 17s
driver / lint (pull_request) Successful in 15s
driver / types (pull_request) Successful in 1m10s
driver / test (3.12) (pull_request) Successful in 6m21s
driver / test (3.13) (pull_request) Successful in 6m13s
driver / lowest (pull_request) Successful in 5m44s
driver / build (pull_request) Successful in 30s
driver / security (pull_request) Successful in 1m13s
CI / driver (pull_request) Successful in 8m6s
driver / publish (pull_request) Skipped
get_system_config()'s firmware_version reads NewX_AVM-DE_Version, the firmware the box offers as an update, empty when it offers none, not the version running (get_facts()["os_version"]). The name stays; the README and the docstring now say what it holds, and that a box answering only UserInterface1.GetInfo reports firmware_update_available without it. No behaviour change. Closes #3
This commit is contained in:
1 parent
245c2f030c
commit
94fa378796
3 files changed
+19
-4
No files matched your search
@@ -334,11 +334,11 @@ class FritzBoxDriver(ResidentialGatewayDriver):
|
||||
return result
|
||||
|
||||
def get_system_config(self) -> dict[str, Any]:
|
||||
"""Return a system configuration snapshot for storage as ``system_snapshot``.
|
||||
"""Return a best-effort snapshot of DSL statistics, firmware updates, DNS and NTP.
|
||||
|
||||
Collects DSL line statistics, firmware update status, upstream DNS
|
||||
servers and NTP settings. All fields are best-effort: missing
|
||||
TR-064 services are silently skipped.
|
||||
``firmware_version`` is the version on *offer* (empty when none), not the one
|
||||
running (``get_facts()["os_version"]``); a box answering only
|
||||
``UserInterface1.GetInfo`` leaves it out. A missing TR-064 service is skipped.
|
||||
"""
|
||||
available = self.fc.services if self.fc else {}
|
||||
result: dict[str, Any] = {}
|
||||
|
||||
Reference in new issue
Block a user