Cleanups and add support for mysensors

This commit is contained in:
zewelor
2018-01-14 12:14:55 +01:00
parent 4b05c1521e
commit 7e5ed968b6
4 changed files with 35 additions and 10 deletions
-6
View File
@@ -1,5 +1,3 @@
from abc import abstractmethod
class BaseWorker:
def __init__(self, **args):
for arg, value in args.items():
@@ -9,9 +7,5 @@ class BaseWorker:
def _setup(self):
return
@abstractmethod
def status_update(self, **args):
...
def format_topic(self, *args):
return '/'.join([self.topic_prefix, *args])