Fix py38 warning (#770)

This commit is contained in:
Egor Zvorykin 2019-11-18 10:32:34 +03:00 committed by Facetoe
parent cb69563c33
commit 5a8eaf4027

View File

@ -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.