Bouni / python-luxtronik

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

SelectionBase suppresses the output of unknown values #91

Closed Guzz-T closed 1 year ago

Guzz-T commented 1 year ago

Currently the function SelectionBase.from_heatpump is implemented as follows:

if value in self.codes:
    return self.codes.get(value)
return None

As a result, if the value is not present in the look-up table, None is returned. It would make "reverse engineering" much easier if the raw value is otherwise returned here.