Skip to content

v1.6.0

Latest

Choose a tag to compare

@github-actions github-actions released this 28 Oct 11:10
· 9 commits to main since this release

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_ERR now raises InvalidSessionException (no longer a subclass of UnauthorizedException); the client logs in again and retries once before raising.
  • get_encryption_method() raises LoginRetryErrorException when the router has locked logins (#556), instead of trying the remaining methods and returning None.
  • reboot() and run_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), a ConnectionError is 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 None values. get_device_info() raises UnknownPathException if the MAC address is unavailable.

🚀 Features

  • Add REST API support with backward-compatible auto detection (#454) @espipj: new api_mode argument (ApiMode.AUTO default, LEGACY, REST). AUTO tries the legacy API first and only falls back to /api/v1 when 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 needs CookieJar(unsafe=True).
  • Handle missing paths in GetDeviceInfo: optional fields (e.g. ModelNumber) are None when the firmware does not provide them; new ignore_unknown_paths argument for get_value_by_xpath() / get_values_by_xpaths(). Both XMO_INVALID_PATH_ERR and XMO_UNKNOWN_PATH_ERR raise UnknownPathException (#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

  • Run pytest across the supported Python CI matrix (#522) @iMicknl

📦 Dependencies

Contributors to this release

@arpena, @espipj, @iMicknl, @manueltarouca, @mr-miles, @dependabot[bot] and @claude