DoorPi expects RFID tags to be integers, why?

  • Hello all,


    I'm trying to set up DoorPi with RDM6300, and I get an error in doorpi/keyboard/from_rdm6300.py when it tries to map RFID tokens to integers:

    Code
    self._InputPins = map(int, input_pins)


    My tokens read as hexadecimal strings. Also, they may be longer than any reasonable integer type can handle, which may or may not be relevant.


    Could the devs please explain what is the reason to convert tokens to numbers? I doubt any arithmetics on such values could make any sense. Values from config file are simply checked against valures received from RFID reader, and if they match, the corresponding event is fired. Wouldn't it be less buggy to keep tokens as strings?


    What should I do about this issue, besides writing here? Should I open an issue on github? Fix and make a pull request?


    PS. Please excuse me for not speaking German properly. I couldn't really search through the forum if this issue was already discussed. If it was, please don't hesitate to point me to the right thread, even if it's in German.