From 279ddb4f39e38d776f4ec8ffa8a394328bd569de Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Wed, 25 Mar 2020 12:31:22 +0000 Subject: [PATCH] Change config to options --- mopidy_raspberry_gpio/frontend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mopidy_raspberry_gpio/frontend.py b/mopidy_raspberry_gpio/frontend.py index ed81d97..097d5e2 100644 --- a/mopidy_raspberry_gpio/frontend.py +++ b/mopidy_raspberry_gpio/frontend.py @@ -51,7 +51,7 @@ class RaspberryGPIOFrontend(pykka.ThreadingActor, core.CoreListener): def dispatch_input(self, settings): handler_name = f"handle_{settings.event}" try: - getattr(self, handler_name)(settings.config) + getattr(self, handler_name)(settings.options) except AttributeError: raise RuntimeError( f"Could not find input handler for event: {settings.event}"