Releases: nordicopen/pyeasee
Improved throttling, new features and bugfix
Throttling added to some specific APIs that can not be called as often as others.
Retry-after header added to 429 response exception.
Add raise_for_status in _refresh_token (contributed by @MathiasStokholm).
Add function to set the equalizer max_allocated_current.
API throttling
A throttling mechanism has been introduced in the API calling.
The limit is set to 15 calls over sliding window of 9 seconds.
New APIs and constants changes
- Support for LED strip brightness API.
- Change to new API for charger dynamic limit.
- Changes to some observation constants.
Improved reload
Cleanup and reload improvement: SignalR task is now cancelled and cleaned up.
Pysignalr bump
Change requirements to pysignalr 1.1.0
Add support for external SSL context.
Consumption data and load_balancing default
Functions to retrieve users and consumption per user added.
Version info version string added.
Default value to current limit for set_load_balancing added.
Error handling override
The error handling set in place by pysignalr lib does not suit our purposes well, so it is now overridden by our own function to allow exceptions to propagate out.
Signalr watchdog removed since given better error handling it is not needed anymore.
SignalR watchdog changed
Watchdog changed to watch received data from SignalR stream and restart SignalR task if no data is received within 300 seconds.
SignalR watchdog
A watchdog task that monitors the signalr lib has been added. If the signalr lib is not able to connect within 10 seconds, the lib task is killed and restarted after a backoff delay.
New functions and bug fixes
New functions to enable/disable schedule without changing them.
New function to control surplus charging.
Bugfixes for weekly schedule (if disabled, setting the schedule would not enable it).