From 35d20682fce181e8f6b9bd3b0105acb17318d211 Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Thu, 12 May 2022 23:23:46 -0400 Subject: [PATCH] the activate function doesn't need to be private --- buttond.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buttond.py b/buttond.py index 4dc8e0a..fdee35a 100755 --- a/buttond.py +++ b/buttond.py @@ -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()