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 13, 2024
1 parent 591101c commit 1114614
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions TheengsGateway/ble_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,11 +537,6 @@ def publish_json(
decoded: bool, # noqa: FBT001
) -> None:
"""Publish JSON data to MQTT."""
# Update tracker last received time
if data_json["id"] in self.discovered_trackers:
self.discovered_trackers[data_json["id"]] = round(time())
logger.debug("Discovered Trackers @publish_json: %s", self.discovered_trackers)

# Remove "track" if PUBLISH_ADVDATA is 0
if not self.configuration["publish_advdata"] and "track" in data_json:
data_json.pop("track", None)
Expand Down

0 comments on commit 1114614

Please sign in to comment.