From b0bf467aa49e2a14db216aca61b0a36a7a1c5e0e Mon Sep 17 00:00:00 2001 From: Brian Martin Date: Fri, 8 Feb 2019 02:12:54 -0500 Subject: [PATCH] stop printing positiion updates stop printing positiion updates --- sucks/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sucks/__init__.py b/sucks/__init__.py index fcd5f87..1316cba 100644 --- a/sucks/__init__.py +++ b/sucks/__init__.py @@ -832,9 +832,8 @@ class EcoVacsMQTT(ClientMQTT): result.update(xml[0].attrib) for key in result: - if ',' in result[key]: #Seen in position updates - print(result[key]) - elif not RepresentsInt(result[key]): #Fix to handle negative int values + #Check for RepresentInt to handle negative int values, and ',' for ignoring position updates + if not RepresentsInt(result[key]) and ',' not in result[key]: result[key] = stringcase.snakecase(result[key]) return result