Skip to content

3.0.0

Latest

Choose a tag to compare

@Salamek Salamek released this 24 Nov 14:10

This release introduces a typed DHCP settings API and adds SCRAM login support for newer Huawei routers.

Breaking change: DHCP settings

dhcp.settings() now returns a mutable DhcpSettings dataclass. dhcp.set_settings() takes that object in place of the previous keyword arguments.

settings = client.dhcp.settings()
settings.dhcp_status = False
client.dhcp.set_settings(settings)

You can change several fields before sending a single write, or construct a DhcpSettings() with defaults. Use full IP addresses for the lease range. The setter sends only known DHCP configuration fields.
Thanks to the author of #270 for confirming the updated workflow on their router.

Authentication

Added Huawei’s two-step SCRAM login for compatible routers reporting password_type=4. The client verifies the server signature and falls back to legacy SHA-256 login when the challenge endpoint is unavailable. Legacy fallback was verified on a physical router. #269

What's Changed

  • Add SCRAM login (challenge_login / authentication_login) for password_type=4 devices by @alpet83 in #269

New Contributors

Full Changelog: 2.0.1...3.0.0