Bugfix timedelta v2 (#5349)
* Bugfix timedelta v2 * fix volvo * fix lint
This commit is contained in:
1 parent
6b91d9a75c
commit
2e3d5302bf
3 files changed
+8
-15
No files matched your search
@@ -1,6 +1,5 @@
|
||||
"""Tracking for bluetooth devices."""
|
||||
import logging
|
||||
from datetime import timedelta
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
@@ -83,8 +82,7 @@ def setup_scanner(hass, config, see):
|
||||
see_device((mac, result))
|
||||
except bluetooth.BluetoothError:
|
||||
_LOGGER.exception('Error looking up bluetooth device!')
|
||||
track_point_in_utc_time(hass, update_bluetooth,
|
||||
now + timedelta(seconds=interval))
|
||||
track_point_in_utc_time(hass, update_bluetooth, now + interval)
|
||||
|
||||
update_bluetooth(dt_util.utcnow())
|
||||
|
||||
|
||||
Reference in new issue
Block a user