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)
|
logging.basicConfig(level=logging.INFO)
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
# callback intermidiary to sanitize user input
|
def activate(macro):
|
||||||
def _activate(macro):
|
"""Sanitize user configured macros."""
|
||||||
if macro is None:
|
if macro is None:
|
||||||
return
|
return
|
||||||
macro = macro.strip('\"').upper()
|
macro = macro.strip('\"').upper()
|
||||||
|
|
Loading…
Reference in New Issue