From 266e781ab43cd58a802d718493fba3dd84691341 Mon Sep 17 00:00:00 2001 From: DigiH Date: Mon, 24 Jun 2024 16:36:42 +0200 Subject: [PATCH] Test --- TheengsGateway/ble_gateway.py | 1 + TheengsGateway/discovery.py | 1 + 2 files changed, 2 insertions(+) diff --git a/TheengsGateway/ble_gateway.py b/TheengsGateway/ble_gateway.py index 74e58f0..cd592a3 100644 --- a/TheengsGateway/ble_gateway.py +++ b/TheengsGateway/ble_gateway.py @@ -229,6 +229,7 @@ def subscribe(self, sub_topic: str) -> None: def on_message(client, userdata, msg) -> None: # noqa: ANN001,ARG001 # evaluate tracker sync message if msg.topic == "theengs/internal/trackersync": + logger.info("theengs/internal/trackersync") msg_json = json.loads(msg.payload) logger.info("trackersync message: %s", msg_json) diff --git a/TheengsGateway/discovery.py b/TheengsGateway/discovery.py index b5543d0..07d96cc 100644 --- a/TheengsGateway/discovery.py +++ b/TheengsGateway/discovery.py @@ -136,6 +136,7 @@ def publish_device_info(self, pub_device) -> None: # noqa: ANN001 return logger.info("publishing device `%s`", pub_device) + logger.info("Discovered Trackers: %s", self.discovered_trackers) pub_device["properties"] = json.loads( getProperties(pub_device["model_id"]), )["properties"]