Change config to options
parent
4cbbe2dbd1
commit
279ddb4f39
|
@ -51,7 +51,7 @@ class RaspberryGPIOFrontend(pykka.ThreadingActor, core.CoreListener):
|
||||||
def dispatch_input(self, settings):
|
def dispatch_input(self, settings):
|
||||||
handler_name = f"handle_{settings.event}"
|
handler_name = f"handle_{settings.event}"
|
||||||
try:
|
try:
|
||||||
getattr(self, handler_name)(settings.config)
|
getattr(self, handler_name)(settings.options)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
f"Could not find input handler for event: {settings.event}"
|
f"Could not find input handler for event: {settings.event}"
|
||||||
|
|
Loading…
Reference in New Issue