make decoder classes <<static>>

This commit is contained in:
Bastian Schroll 2018-09-09 16:34:44 +02:00
parent a6542f0b63
commit f1bf468c2a
6 changed files with 60 additions and 69 deletions

View file

@ -45,7 +45,7 @@ try:
logging.debug("Import BOSWatch modules")
from boswatch.config import Config
from boswatch.network.client import TCPClient
from boswatch.decoder import decoder
from boswatch.decoder.decoder import Decoder
from boswatch.utils import header
except Exception as e: # pragma: no cover
logging.exception("cannot import modules")
@ -84,7 +84,7 @@ try:
print("Alarm Nr #" + str(i))
data = "ZVEI1: 12345"
bwPacket = decoder.decode(data)
bwPacket = Decoder.decode(data)
if bwPacket:
bwPacket.printInfo()