Skip to content

Commit

Permalink
Update ble_gateway.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiH committed Jan 14, 2024
1 parent 378e55c commit 4876d04
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions TheengsGateway/ble_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4876d04

Please sign in to comment.