Ignore acc: 0 updates.
This commit is contained in:
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):
|
||||
|
||||
Reference in new issue
Block a user