Skip to content

Commit

Permalink
--time_between as float & argument adjustments
Browse files Browse the repository at this point in the history
• --time_between as float to allow for decimal vlaues for cont scanning of motion/contact sensor, buttons …

• Argument adjustments
  • Loading branch information
DigiH committed Feb 12, 2024
1 parent 211b930 commit 928c9df
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions TheengsGateway/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand Down Expand Up @@ -182,7 +182,7 @@ def parse_args() -> argparse.Namespace:
)
parser.add_argument(
"-pt",
"--pub_topic",
"--publish_topic",
type=str,
help="MQTT publish topic",
)
Expand All @@ -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(
Expand Down

0 comments on commit 928c9df

Please sign in to comment.