https://pypi.org/project/pyrituals/0.0.7/
What's Changed
-
Updated to work with API v2 by @quebulm in #6
Switched authentication to V2: New endpoint /apiv2/account/token, token is now passed in the Authorization header (instead of v1 login/session).
Device retrieval via V2: Hubs are now fetched from /apiv2/account/hubs.
Per-attribute/sensor calls: States are read/updated through /apiv2/hubs/{hub}/attributes/{attr} and /sensors/{sensor} (e.g., fanc, speedc, roomc, fillc, rfidc, battc, wific, versionc).
Backward-compatible data model: V2 responses are internally mapped into the old v1 structure ({"hub": {...}}) so that existing HA integration/properties continue to work.
Removed/neutralized constant: account_hash no longer exists in V2 (kept empty for compatibility).
Encapsulated API client: Unified header/timeout handling, post_json + post_form, and streamlined error mapping (AuthenticationException, 401 handling).
Public methods/signatures (e.g., authenticate, get_devices, update_data, turn_on/off, set_perfume_amount, set_room_size) remain unchanged.
New Contributors
Full Changelog: 0.0.6...0.0.7