Fix py38 warning (#770)
This commit is contained in:
parent
cb69563c33
commit
5a8eaf4027
@ -153,7 +153,7 @@ class Module(SettingsBase):
|
||||
"Method callback", **kwargs)
|
||||
call_callback(cb, self, *args, **kwargs)
|
||||
elif hasattr(self, cb):
|
||||
if cb is not "run":
|
||||
if cb != "run":
|
||||
# CommandEndpoint already calls run() after every
|
||||
# callback to instantly update any changed state due
|
||||
# to the callback's actions.
|
||||
|
Loading…
Reference in New Issue
Block a user