Skip to content

Commit

Permalink
Ask to send statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
bkbilly committed Feb 26, 2024
1 parent b3524cc commit c1df813
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lnxlink/config_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ def userprompt_config(config_path):
input(f" Change clientId [{config['mqtt']['clientId']}]: ")
or config["mqtt"]["clientId"]
)
statistics = query_true_false("Send statistics", True)
if not statistics:
config["exclude"].append("statistics")

with open(config_path, "w", encoding="UTF-8") as file:
file.write(yaml.dump(config, default_flow_style=False, sort_keys=False))
Expand Down

0 comments on commit c1df813

Please sign in to comment.