Revert "Lift restriction that "run" cannot be used as a callback"

This reverts commit d018be872a.
This commit is contained in:
enkore 2016-02-01 17:09:47 +01:00
parent 57be3c45a9
commit 9759d6eea5

View File

@ -101,6 +101,10 @@ class Module(SettingsBase):
elif our_method:
cb(self, *args)
elif hasattr(self, cb):
if cb is not "run":
# CommandEndpoint already calls run() after every
# callback to instantly update any changed state due
# to the callback's actions.
self.__log_button_event(button, cb, args, "Member callback")
getattr(self, cb)(*args)
else: