Fix linter errors

This commit is contained in:
raspberry
2018-02-22 11:03:57 +03:00
parent 0f9a759839
commit b9e940e9de
3 changed files with 4 additions and 14 deletions
+1 -3
View File
@@ -52,8 +52,6 @@ def read_motion_data(gateway, client, polling_interval, polling_models, stop_eve
continue
data = json.loads(sensor_resp['data'])
state = data.get("status", None)
short_id = sensor_resp['short_id']
if device['data'] != data or first:
device['data'] = data
_LOGGER.debug("Polling result differs for " + str(model) + " with sid(First: " + str(first) + "): " + str(sid) + "; " + str(data))
@@ -75,7 +73,7 @@ def process_mqtt_messages(gateway, client, stop_event):
sid = data.get("sid", None)
values = data.get("values", dict())
resp = gateway.write_to_hub(sid, **values)
gateway.write_to_hub(sid, **values)
client._queue.task_done()
except Exception as e:
_LOGGER.error('Error while sending from mqtt to gateway: ', str(e))