mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
Fix broken bluetooth tracker (#16589)
This commit is contained in:
committed by
Paulus Schoutsen
parent
d0aeb90c22
commit
1586d3000c
@@ -80,7 +80,7 @@ def setup_scanner(hass, config, see, discovery_info=None):
|
|||||||
|
|
||||||
request_rssi = config.get(CONF_REQUEST_RSSI, False)
|
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 and set timer for the next update."""
|
||||||
update_bluetooth_once()
|
update_bluetooth_once()
|
||||||
track_point_in_utc_time(
|
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 devices on demand."""
|
||||||
update_bluetooth_once()
|
update_bluetooth_once()
|
||||||
|
|
||||||
update_bluetooth()
|
update_bluetooth(dt_util.utcnow())
|
||||||
|
|
||||||
hass.services.register(
|
hass.services.register(
|
||||||
DOMAIN, "bluetooth_tracker_update", handle_update_bluetooth)
|
DOMAIN, "bluetooth_tracker_update", handle_update_bluetooth)
|
||||||
|
Reference in New Issue
Block a user