From 928c9dff2962f88083cdbc7b2361afb2be06316b Mon Sep 17 00:00:00 2001 From: DigiH Date: Mon, 12 Feb 2024 15:48:12 +0100 Subject: [PATCH] --time_between as float & argument adjustments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • --time_between as float to allow for decimal vlaues for cont scanning of motion/contact sensor, buttons … • Argument adjustments --- TheengsGateway/config.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/TheengsGateway/config.py b/TheengsGateway/config.py index 544ed4e5..d00ce5dc 100644 --- a/TheengsGateway/config.py +++ b/TheengsGateway/config.py @@ -102,13 +102,13 @@ def parse_args() -> argparse.Namespace: ) parser.add_argument( "-Dn", - "--discovery_name", + "--discovery_device_name", type=str, help="Device name for Home Assistant", ) parser.add_argument( "-Dt", - "--discovery-topic", + "--discovery_topic", type=str, help="MQTT Discovery topic", ) @@ -182,7 +182,7 @@ def parse_args() -> argparse.Namespace: ) parser.add_argument( "-pt", - "--pub_topic", + "--publish_topic", type=str, help="MQTT publish topic", ) @@ -195,20 +195,20 @@ def parse_args() -> argparse.Namespace: ) parser.add_argument( "-sd", - "--scan_duration", + "--ble_scan_time", type=int, help="BLE scan duration (seconds)", ) parser.add_argument( "-st", - "--sub_topic", + "--subscribe_topic", type=str, help="MQTT subscribe topic", ) parser.add_argument( "-tb", - "--time_between", - type=int, + "--ble_time_between_scans", + type=float, help="Seconds to wait between scans", ) parser.add_argument(