Change config to options

remotes/origin/extra-event-options
Phil Howard 2020-03-25 12:31:22 +00:00
parent 4cbbe2dbd1
commit 279ddb4f39
1 changed files with 1 additions and 1 deletions

View File

@ -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}"