Skip to content

Commit

Permalink
requirements update, extended logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jziolkowski committed Mar 6, 2021
1 parent cddde1f commit bec24df
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions Util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def parse_message(self, topic, msg):
try:
payload = loads(msg)
except JSONDecodeError as e:
logging.critical("PARSER: Can't parse STATUS (%s)", e)
logging.critical("PARSER: Can't parse STATUS (%s): %s", e, msg)

if payload:
payload = payload.get('Status', {})
Expand All @@ -212,7 +212,7 @@ def parse_message(self, topic, msg):
try:
payload = loads(msg)
except JSONDecodeError as e:
logging.critical("PARSER: Can't parse %s (%s)", self.reply, e)
logging.critical("PARSER: Can't parse %s (%s): %s", self.reply, e, msg)

if payload:
payload = payload[list(payload.keys())[0]]
Expand All @@ -223,7 +223,7 @@ def parse_message(self, topic, msg):
try:
payload = loads(msg)
except JSONDecodeError as e:
logging.critical("PARSER: Can't parse %s (%s)", self.reply, e)
logging.critical("PARSER: Can't parse %s (%s): %s", self.reply, e, msg)

if payload:
if self.reply == 'STATUS11':
Expand All @@ -240,7 +240,7 @@ def parse_message(self, topic, msg):
try:
payload = loads(msg)
except JSONDecodeError as e:
logging.critical("PARSER: Can't parse %s (%s)", self.reply, e)
logging.critical("PARSER: Can't parse %s (%s): %s", self.reply, e, msg)

if payload:
if self.reply in ('STATUS8', 'STATUS10'):
Expand All @@ -253,7 +253,7 @@ def parse_message(self, topic, msg):
try:
payload = loads(msg)
except JSONDecodeError as e:
logging.critical("PARSER: Can't parse %s (%s)", self.reply, e)
logging.critical("PARSER: Can't parse %s (%s): %s", self.reply, e, msg)

if payload:
keys = list(payload.keys())
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
paho_mqtt>=1.4
PyQt5==5.14
PyQt5==5.14.2
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def get_version():
python_requires='>=3.6',
install_requires=[
"paho_mqtt>=1.4",
"PyQt5>=5.12"
"PyQt5==5.14.2"
],
packages=['GUI', 'Util'],
entry_points=entry_points,
Expand Down
2 changes: 1 addition & 1 deletion tdmgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

# TODO: rework device export

__version__ = "0.2.8"
__version__ = "0.2.9"
__tasmota_minimum__ = "6.6.0.17"


Expand Down

0 comments on commit bec24df

Please sign in to comment.