Improve script self-description

This commit is contained in:
Griatch 2019-04-14 11:29:17 +02:00
parent 098af3caba
commit 2781434fd4

View file

@ -165,6 +165,9 @@ class ScriptBase(with_metaclass(TypeclassBase, ScriptDB)):
except Exception:
return False
def __str__(self):
return "<{cls} {key}>".format(cls=self.__class__.__name__, key=self.key)
def _start_task(self):
"""
Start task runner.