From 1586d3000c9bd378a8372d919ded05745f11425f Mon Sep 17 00:00:00 2001 From: Jason Hu Date: Wed, 12 Sep 2018 22:52:31 -0700 Subject: [PATCH] Fix broken bluetooth tracker (#16589) --- homeassistant/components/device_tracker/bluetooth_tracker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/device_tracker/bluetooth_tracker.py b/homeassistant/components/device_tracker/bluetooth_tracker.py index 217df0aacd4..d22a1ba7c1f 100644 --- a/homeassistant/components/device_tracker/bluetooth_tracker.py +++ b/homeassistant/components/device_tracker/bluetooth_tracker.py @@ -80,7 +80,7 @@ def setup_scanner(hass, config, see, discovery_info=None): request_rssi = config.get(CONF_REQUEST_RSSI, False) - def update_bluetooth(): + def update_bluetooth(_): """Update Bluetooth and set timer for the next update.""" update_bluetooth_once() track_point_in_utc_time( @@ -111,7 +111,7 @@ def setup_scanner(hass, config, see, discovery_info=None): """Update bluetooth devices on demand.""" update_bluetooth_once() - update_bluetooth() + update_bluetooth(dt_util.utcnow()) hass.services.register( DOMAIN, "bluetooth_tracker_update", handle_update_bluetooth)