From 4876d0441ea6b77d3ccb4dce171e4a41031f6ac0 Mon Sep 17 00:00:00 2001 From: DigiH Date: Sun, 14 Jan 2024 16:17:48 +0100 Subject: [PATCH] Update ble_gateway.py --- TheengsGateway/ble_gateway.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/TheengsGateway/ble_gateway.py b/TheengsGateway/ble_gateway.py index 1bb5c8b6..77a90c1b 100644 --- a/TheengsGateway/ble_gateway.py +++ b/TheengsGateway/ble_gateway.py @@ -397,8 +397,6 @@ async def ble_scan_loop(self) -> None: self.configuration["ble_time_between_scans"], ) - # Check tracker timeouts - self.check_tracker_timeout() # Update time for all clocks once a day await self.update_clock_times() else: @@ -496,6 +494,10 @@ def decode_advertisement( ) # Publish sensor data to Home Assistant MQTT discovery else: self.publish_json(decoded_json, decoded=True) + + # Check tracker timeouts + self.check_tracker_timeout() + elif self.configuration["publish_all"]: add_manufacturer(data_json) self.publish_json(data_json, decoded=False)