Key Changes
1. Enhanced Authentication Handling
- The SDK now includes improved authentication management, allowing users to set their username and password through environment variables.
- You can configure the SDK using the following environment variables in your `.env` file:
- `FORTLEV_SOLAR_USERNAME`
- `FORTLEV_SOLAR_PWD`
2. Token Renewal Feature by patrickpasquini in https://github.com/patrickpasquini/fortlev_solar_sdk/pull/12
- The SDK now automatically checks if the authentication token is expired when making requests. If the token is expired, it will be renewed seamlessly, ensuring uninterrupted access to the API.
- This improvement enhances the robustness of your application by preventing authentication errors during API calls.
3. Development Mode Recommendation
- For development purposes, it is recommended to use the `FortlevSolarClient` in development mode. You can initialize the client with:
python
FortlevSolarClient(env="DEV")
**Full Changelog**: https://github.com/patrickpasquini/fortlev_solar_sdk/compare/0.2.2...0.2.3