Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuova API sito GME e riscrittura generale #67

Merged
merged 70 commits into from
Nov 14, 2024
Merged

Nuova API sito GME e riscrittura generale #67

merged 70 commits into from
Nov 14, 2024

Commits on May 6, 2024

  1. Configuration menu
    Copy the full SHA
    153174a View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. Refactor parziale delle funzioni

    semplificazione dei blocchi condizionali
    spostata logica per trovare la data del prossimo cambio fascia in get_next_date, snellendo la funzione get_fascia
    moddroid94 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    11f3ebc View commit details
    Browse the repository at this point in the history
  2. formattazione seguendo linee guida hass di Pylint e Ruff

    added vscode env to gitignore
    
    add logger for future use
    
    change in return types to match expect type or fn type return
    
    ordering and cleanup of imports
    moddroid94 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    a42245d View commit details
    Browse the repository at this point in the history
  3. Moved coordinator into module coordinator.py

    Imports are already pruned for new code, so there are missing import in this file!
    moddroid94 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    385ae24 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8a86da6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    97bfdc8 View commit details
    Browse the repository at this point in the history
  6. Fix for security vulnerability in xml parsing

    switched base xml parser with defusedxml, as a wrapper of the base parser the sintax doesn't change
    
    fixes for date param format in API endpoint
    
    Better response handling
    Tries to load the zip only if the request is 200, otherwise logs the error
    moved the actual zip load after await
    
    Bump version, Drop bs4 requirement
    moddroid94 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    9bf61f9 View commit details
    Browse the repository at this point in the history
  7. switched to match for better readability

    inverted logic for time range comparison to use chained comparison
    Reasoning: comparing after 23 and before 7 requires or statement while checking between 8 and 19 can use chained comparison, which i think is more easy to understand.
    moddroid94 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    61d675e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6db6917 View commit details
    Browse the repository at this point in the history
  9. Aggiornamento versione

    virtualdj authored and moddroid94 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    d86507f View commit details
    Browse the repository at this point in the history
  10. Integrated next fascia

    fix for updated fascia
    simplify decode fascia def
    
    removed unnecessary override in property
    
    Added Release worflow in Github Actions
    With this action pushing on master creates a new patch version 0.0.+1 , we can override the bump with PR release label, or skip the creation of a release on commit with [norelease] in the commit title
    
    Improved request handling and errors exception
    moddroid94 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    94e1a39 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    795b2c5 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    798794f View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    860b8ed View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    30403aa View commit details
    Browse the repository at this point in the history
  15. using get_next_date utils for date retrieval

    fixes
    
    Moved Exctract xml to utils module
    
    [norelease]
    
    bump version in manifest.json
    
    Added exceptions for linting known errors
    moddroid94 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    eef92fa View commit details
    Browse the repository at this point in the history
  16. Migration to Enum and Interfaces for Pun related data

    -PunData holds the list of values for every pun band
    -Fascia Enumerates the bands Universally in the code
    -PunValues holds the dict of current values for the sensors, this way they are bonded to the enum definition and we can get type checking errors
    
    Main Changes:
    Coordinator:
    - replaced old for loop with dynamic one using the enum value to set and get pun values, simplified the check and setup of F23
    - Removed number of values per pun as a separate dictionary, using len() when needed
    
    Interfaces:
    -New file, created Enum and Interfaces nedeed
    
    Sensor:
    -replace old static creation with a dynamic loop based on Enum Fascia, this way we can add Bands without having to edit all the various reference
    -Replaced definition of self.tipo with self.fascia using
    
    Enum
    -Simplified handle_coordinator_update using enum
    
    Utils:
    -Updated definitions and type return to Enum Fascia
    -Updated return type of exctract_xml to match PunData type
    -simplified append match statement with dynamic match
    
    General fixes to types and definitions
    
    moved holidays deps to utils
    non functional fixes
    
    Updated wrong type definition for PunSensorEntity
    
    removed unused decode fascia function
    correction to fmt_float type definition
    
    possible BREAKING CHANGE, new sensor ids definition
    
    di questa non sono sicuro, bisogna valutare bene che impatto ha sui gli user attuali, e considerata la natura dinamica della definizione dei nomi, nel caso ci fosse una variazione per cause non nostre, quale' l'impatto?
    per ora testo il funzionamento.
    
    hotfix missing initialization
    
    Revert for moddroid94@1987711
    
    Cambiare id orfana gli altri sensori e non sembra esserci un helper per fare un merge dei sensori, per ora torniamo al behavior di dafult che non introduce breaking changes.
    
    hotfix per nome sensore prezzo fascia corrente
    
    Hotfixes
    fix for error in fascia F23 calculation
    better type definition in PunData
    removed unused orari dict
    removed redundant init
    
    Fixed F23 calculation, again.
    
    Update README.md [norelease]
    
    Test Custom Action
    
    removed old actions
    
    set local version to 0
    
    fix test repo
    
    added requirements file
    
    automatic publishing of draft release
    
    comment edit to test merge.
    
    As documented in https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow
    
    using GITHUB_TOKEN in an action won't trigger other actions (to avoid recursive calling) so the release action to upload and publish the draft release created by the drafter won't trigger, moving everything inside this action should make it run and publish everything, with the cost of having a little more runtime and if something fails in the draft the whole action will fail
    
    Revert "fixes to release action"
    moddroid94 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    c2cb9e8 View commit details
    Browse the repository at this point in the history
  17. Update release.yaml

    fix old change
    moddroid94 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    581ddb1 View commit details
    Browse the repository at this point in the history
  18. Update manifest.json

    Removed dependency as it will get pushed by action
    moddroid94 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    9d36ac1 View commit details
    Browse the repository at this point in the history
  19. Revert intervallo tentativi in caso di errore

    Un errore nello zip viene gestito come un errore normale
    TODO implementare un errore custom in caso di errore di auth
    
    rimosso commento di test
    
    Fix riferimenti repo in release drafter e README per merge
    per:
    #45 (comment)
    #45 (comment)
    
    fix for permission in action
    moddroid94 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    c840b51 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    7dc3685 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. Configuration menu
    Copy the full SHA
    54561c7 View commit details
    Browse the repository at this point in the history

Commits on May 31, 2024

  1. Aggiunto numero random di minuti all'orario di update per evitare di …

    …effettuare tutte le request API allo stesso momento.
    moddroid94 committed May 31, 2024
    Configuration menu
    Copy the full SHA
    f00a293 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2024

  1. Configuration menu
    Copy the full SHA
    2ac4eb0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    78afabc View commit details
    Browse the repository at this point in the history
  3. Merge upstream

    moddroid94 authored Jun 10, 2024
    Configuration menu
    Copy the full SHA
    32e280d View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2024

  1. fix #45 (comment)

    moddroid94 committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    038c098 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    997b605 View commit details
    Browse the repository at this point in the history
  3. Fix linter

    moddroid94 committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    cfe539f View commit details
    Browse the repository at this point in the history
  4. fix #45 (comment)

    moddroid94 committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    87784a5 View commit details
    Browse the repository at this point in the history
  5. fix linter

    moddroid94 committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    04d3022 View commit details
    Browse the repository at this point in the history
  6. fix #45 (comment)

    moddroid94 committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    4a1f43c View commit details
    Browse the repository at this point in the history
  7. fix #45 (comment)

    moddroid94 committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    5396381 View commit details
    Browse the repository at this point in the history
  8. Fix Commenti

    moddroid94 committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    a8b6072 View commit details
    Browse the repository at this point in the history
  9. Fix Logs

    moddroid94 committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    5d01c72 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    63447d2 View commit details
    Browse the repository at this point in the history
  11. Fix commenti e linter

    moddroid94 committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    71d289e View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    bea10b4 View commit details
    Browse the repository at this point in the history
  13. Fix #45 (comment)

    moddroid94 committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    d18a7e0 View commit details
    Browse the repository at this point in the history
  14. Fix commenti e docstring

    moddroid94 committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    e2eba1e View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    f71fe19 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    2934e31 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    490859c View commit details
    Browse the repository at this point in the history
  18. Merge upstream

    Rimosso override che causa problemi; fix #51
    moddroid94 authored Jun 15, 2024
    Configuration menu
    Copy the full SHA
    9bbef33 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2024

  1. Fix spazio nel commento

    virtualdj committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    6cfddd5 View commit details
    Browse the repository at this point in the history
  2. Fix None

    virtualdj committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    1b9750a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    61eb072 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ab32e74 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7cd70f3 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #45 from moddroid94/master

    Refactor to Interfaces and Enums
    virtualdj authored Oct 26, 2024
    Configuration menu
    Copy the full SHA
    526a154 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c2556e5 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6e511fd View commit details
    Browse the repository at this point in the history
  9. Fix lint con Ruff

    virtualdj committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    5166886 View commit details
    Browse the repository at this point in the history
  10. Rimossa istruzione orfana

    virtualdj committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    ea274d5 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2024

  1. Configuration menu
    Copy the full SHA
    84a865b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    17141bd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    650791c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c0eb98d View commit details
    Browse the repository at this point in the history
  5. Aggiunti ignore per mypy

    virtualdj committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    6d59ac1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6bf8866 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2024

  1. Configuration menu
    Copy the full SHA
    402b8ea View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2024

  1. Configuration menu
    Copy the full SHA
    450f2bb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dc29478 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a342e0a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b04b410 View commit details
    Browse the repository at this point in the history
  5. Usa i valori dall'enum

    virtualdj committed Nov 9, 2024
    Configuration menu
    Copy the full SHA
    d9ae6e7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3681f66 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f3bd425 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2024

  1. Configuration menu
    Copy the full SHA
    a3455ae View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2024

  1. Aggiornate note di sviluppo

    virtualdj committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    fb11c94 View commit details
    Browse the repository at this point in the history