Dynamic list of MAC addresses
emareg opened this issue · comments
Emanuel Regnath commented
The list of authorized and configured Dash-Buttons should be managed in a dynamic list instead of a if
construct. On button press, an individual function should iterate over the list and check if the MAC is known and if a button press for this MAC was detected before for the same poll (prevent double-voting).
Python lists: https://docs.python.org/3/tutorial/datastructures.html