Bouni / python-luxtronik

python-luxtronik is a library that allow you to interact with a Luxtronik heatpump controller.
MIT License
38 stars 20 forks source link

Throw a KeyError exception if obsolete names are used #191

Open Guzz-T opened 3 days ago

Guzz-T commented 3 days ago

Unlike #187, this version no longer supports obsolete names. Instead, it returns an exception, compelling the user to switch to the latest version.

The names are passed directly to the constructor, eliminating the need for additional files or constants. This allows for the identification of names from previous versions without the need to execute the code.

Fixes #168. Replaces #171 and #187.

github-actions[bot] commented 3 days ago

Coverage

Coverage Report
FileStmtsMissCoverMissing
luxtronik
   __init__.py1841194%42–43, 46–51, 257–258, 263
   __main__.py21210%3–49
   datatypes.py290199%110
   discover.py403415%21–69
luxtronik/scripts
   dump_changes.py43430%7–85
   dump_luxtronik.py26260%6–52
TOTAL70213681% 

Tests Skipped Failures Errors Time
131 0 :zzz: 0 :x: 0 :fire: 4.252s :stopwatch: