1
0
Fork 0

the activate function doesn't need to be private

This commit is contained in:
Kevin Matz 2022-05-12 23:23:46 -04:00
parent 5c32645105
commit 35d20682fc
1 changed files with 2 additions and 2 deletions

View File

@ -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()