New 2.0.0 beta version!
🚨 BREAKING CHANGES
This new version changes the way the sensors are named.
The pronote
prefix was removed, and the sensors are now named to be human-readable.
Example: sensor.pronote_LASTNAME_FIRSTNAME_grades
would become sensor.LASTNAME_FIRSTNAME_grades
What's new:
📆 Periods are now handled!
New period related sensors are now available.
For example, for the Grades, if the current period is "Trimestre 3", you'll get 3 sensors:
Sensor | Description |
---|---|
sensor.LASTNAME_FIRSTNAME_grades | the grades sensor for the current period |
sensor.LASTNAME_FIRSTNAME_grades_trimestre_2 | the grades from second trimester |
sensor.LASTNAME_FIRSTNAME_grades_trimestre_1 | the grades from first trimester |
The period related sensors are:
- Grades
- Averages
- Absenses
- Delays
- Evaluations
- Punishments
For all those sensors (and derived based on previous periods), you'll find 2 extra attributes:
Attribute | Description | Value |
---|---|---|
period_key | the period the sensor is related to | timestre_1 , semestre_1 , ...
|
is_current_period | if the sensor is related to the current period | true or false
|
You'll also find additional sensors with information about the periods:
Sensor | Description | State |
---|---|---|
sensor.LASTNAME_FIRSTNAME_current_period | the current period | the period name |
sensor.LASTNAME_FIRSTNAME_periods | list of all periods returned by Pronote | number of periods |
sensor.LASTNAME_FIRSTNAME_active_periods | list of previous + current periods | number of periods |
sensor.LASTNAME_FIRSTNAME_previous_periods | list of previous periods | number of periods |
⚙️ Define nickname in config flow
The nickname option can now be specified in a extra step during the config flow.
The field is pre-filled with a guessed value.
Pronote only returns the student's full name, so I try to determine the firstname (= nickname) by splitting the full name on spaces and only keeping the last item.
For example, if the full name was DOE SMITH John
, the. guessed nickname would be John
Other
- student's sensor state is now classname
- HACS release are now zipped
Full Changelog: 1.15.5...2.0.0-beta