Cleanup component track_point_in_utc_time usage (#6330)

This commit is contained in:
Pascal Vizeli authored and Paulus Schoutsen committed 2017-03-01 07:37:48 -08:00
1 parent 30bed8341a
commit 4e96e461f7
5 files changed
+9 -12

No files matched your search

@@ -82,7 +82,8 @@ def setup_scanner(hass, config, see, discovery_info=None):
see_device((mac, result))
except bluetooth.BluetoothError:
_LOGGER.exception('Error looking up bluetooth device!')
track_point_in_utc_time(hass, update_bluetooth, now + interval)
track_point_in_utc_time(
hass, update_bluetooth, dt_util.utcnow() + interval)
update_bluetooth(dt_util.utcnow())