the activate function doesn't need to be private
This commit is contained in:
parent
5c32645105
commit
35d20682fc
|
@ -28,8 +28,8 @@ from gpiozero import Button, GPIODeviceError
|
|||
logging.basicConfig(level=logging.INFO)
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
# callback intermidiary to sanitize user input
|
||||
def _activate(macro):
|
||||
def activate(macro):
|
||||
"""Sanitize user configured macros."""
|
||||
if macro is None:
|
||||
return
|
||||
macro = macro.strip('\"').upper()
|
||||
|
|
Loading…
Reference in New Issue