Ignore acc: 0 updates.

This commit is contained in:
pavoni committed 2016-05-19 16:16:43 +01:00
1 parent dd1703469e
commit 8ff9506138
2 files changed
+29

No files matched your search

@@ -53,6 +53,12 @@ def setup_scanner(hass, config, see):
'accuracy %s is not met: %s',
data_type, max_gps_accuracy, data)
return None
if convert(data.get('acc'), float, 1.0) == 0.0:
_LOGGER.debug('Skipping %s update because GPS accuracy'
'is zero',
data_type)
return None
return data
def owntracks_location_update(topic, payload, qos):