Repository navigation
What's changed
This release fixes setup on routers whose firmware lacks optional device fields (e.g. TalkTalk F@ST 5364), prevents repeated reboots/speed tests after a dropped connection, stops login probing from extending a router's login lock, and recovers from expired sessions instead of reporting an authentication failure. It also adds experimental support for newer firmware that only exposes the /api/v1 REST API.
⚠️ Behaviour changes
No public API was removed (new arguments are optional and keyword-compatible), but some calls now raise a specific exception where they previously returned None or crashed:
- Expired sessions are retried (#520):
XMO_INVALID_SESSION_ERRnow raisesInvalidSessionException(no longer a subclass ofUnauthorizedException); the client logs in again and retries once before raising. get_encryption_method()raisesLoginRetryErrorExceptionwhen the router has locked logins (#556), instead of trying the remaining methods and returningNone.reboot()andrun_speed_test()are not resent after a dropped connection (#555). If the router drops the connection after receiving the request (as it does when rebooting), aConnectionErroris raised instead of sending it up to 5 times.- Request-level errors are no longer swallowed (#386): request-level authentication, access-restriction, max-session and login-retry errors now raise their exception instead of returning
Nonevalues.get_device_info()raisesUnknownPathExceptionif the MAC address is unavailable.
🚀 Features
- Add REST API support with backward-compatible auto detection (#454) @espipj: new
api_modeargument (ApiMode.AUTOdefault,LEGACY,REST). AUTO tries the legacy API first and only falls back to/api/v1when legacy is unavailable; REST covers login, logout, device info, hosts and reboot. Not yet verified on REST hardware. When passing your own session for REST, it needsCookieJar(unsafe=True). - Handle missing paths in GetDeviceInfo: optional fields (e.g.
ModelNumber) areNonewhen the firmware does not provide them; newignore_unknown_pathsargument forget_value_by_xpath()/get_values_by_xpaths(). BothXMO_INVALID_PATH_ERRandXMO_UNKNOWN_PATH_ERRraiseUnknownPathException(#386) @mr-miles
🐛 Bug Fixes
- Stop encryption method detection when the router locks logins (#556) @manueltarouca
- Do not resend reboot or speed test after a dropped connection (#555) @manueltarouca
- Fix InvalidSessionException treated as permanent auth failure (#520) @arpena
🧰 Maintenance
📦 Dependencies
- Bump ty from 0.0.86 to 0.0.89 (#557) @dependabot[bot]
- Bump prek from 0.5.5 to 0.5.6 (#558) @dependabot[bot]
- Bump ruff from 0.17.0 to 0.17.1 (#559) @dependabot[bot]
- Bump aiohttp from 3.14.3 to 3.14.5 (#552) @dependabot[bot]
- Bump release-drafter/release-drafter/autolabeler from 7.9.0 to 7.10.0 (#551) @dependabot[bot]
- Bump ruff from 0.16.10 to 0.17.0 (#553) @dependabot[bot]
- Bump ty from 0.0.84 to 0.0.86 (#554) @dependabot[bot]
- Bump ruff from 0.16.3 to 0.16.10 (#549) @dependabot[bot]
- Bump multidict from 6.7.1 to 6.9.1 (#550) @dependabot[bot]
- Bump mypy from 2.3.1 to 2.4.0 (#548) @dependabot[bot]
- Bump prek from 0.4.14 to 0.5.5 (#547) @dependabot[bot]
- Bump release-drafter/release-drafter/autolabeler from 7.7.0 to 7.9.0 (#546) @dependabot[bot]
- Bump ty from 0.0.72 to 0.0.84 (#543) @dependabot[bot]
- Bump mypy from 2.3.0 to 2.3.1 (#526) @dependabot[bot]
- Bump ty from 0.0.69 to 0.0.72 (#527) @dependabot[bot]
- Bump ruff from 0.16.2 to 0.16.3 (#528) @dependabot[bot]
- Bump prek from 0.4.12 to 0.4.14 (#529) @dependabot[bot]
- Bump ruff from 0.16.0 to 0.16.2 (#523) @dependabot[bot]
- Bump ty from 0.0.65 to 0.0.69 (#524) @dependabot[bot]
- Bump prek from 0.4.10 to 0.4.12 (#525) @dependabot[bot]
- Bump ruff from 0.15.22 to 0.16.0 (#519) @dependabot[bot]
- Bump ty from 0.0.62 to 0.0.65 (#518) @dependabot[bot]
- Bump release-drafter/release-drafter/autolabeler from 7.6.0 to 7.7.0 (#516) @dependabot[bot]
- Bump ty from 0.0.50 to 0.0.62 (#513) @dependabot[bot]
- Bump prek from 0.4.5 to 0.4.10 (#515) @dependabot[bot]
- Bump aiohttp from 3.14.1 to 3.14.3 (#514) @dependabot[bot]
- Bump ruff from 0.15.17 to 0.15.22 (#511) @dependabot[bot]
- Bump actions/setup-python from 6 to 7 (#510) @dependabot[bot]
- Bump pytest from 9.1.0 to 9.1.1 (#512) @dependabot[bot]
Contributors to this release
@arpena, @espipj, @iMicknl, @manueltarouca, @mr-miles, @dependabot[bot] and @claude