mirror of
https://github.com/home-assistant/core.git
synced 2025-06-04 13:17:06 +00:00
Fix log owntrack log flooting (#4198)
This commit is contained in:
parent
a01939c6e9
commit
d7b3c9c38e
@ -142,9 +142,9 @@ def setup_scanner(hass, config, see):
|
|||||||
return data
|
return data
|
||||||
if max_gps_accuracy is not None and \
|
if max_gps_accuracy is not None and \
|
||||||
convert(data.get('acc'), float, 0.0) > max_gps_accuracy:
|
convert(data.get('acc'), float, 0.0) > max_gps_accuracy:
|
||||||
_LOGGER.warning('Ignoring %s update because expected GPS '
|
_LOGGER.info('Ignoring %s update because expected GPS '
|
||||||
'accuracy %s is not met: %s',
|
'accuracy %s is not met: %s',
|
||||||
data_type, max_gps_accuracy, payload)
|
data_type, max_gps_accuracy, payload)
|
||||||
return None
|
return None
|
||||||
if convert(data.get('acc'), float, 1.0) == 0.0:
|
if convert(data.get('acc'), float, 1.0) == 0.0:
|
||||||
_LOGGER.warning('Ignoring %s update because GPS accuracy'
|
_LOGGER.warning('Ignoring %s update because GPS accuracy'
|
||||||
@ -247,7 +247,7 @@ def setup_scanner(hass, config, see):
|
|||||||
if (max_gps_accuracy is not None and
|
if (max_gps_accuracy is not None and
|
||||||
data['acc'] > max_gps_accuracy):
|
data['acc'] > max_gps_accuracy):
|
||||||
valid_gps = False
|
valid_gps = False
|
||||||
_LOGGER.warning(
|
_LOGGER.info(
|
||||||
'Ignoring GPS in region exit because expected '
|
'Ignoring GPS in region exit because expected '
|
||||||
'GPS accuracy %s is not met: %s',
|
'GPS accuracy %s is not met: %s',
|
||||||
max_gps_accuracy, payload)
|
max_gps_accuracy, payload)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user