From a0a77ec3cb7425a34dc44f10439d53948420b1fd Mon Sep 17 00:00:00 2001 From: Aarno Aukia Date: Sat, 8 Jun 2024 09:06:38 +0200 Subject: [PATCH] enable temperature toggling in example --- example.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/example.py b/example.py index 4ee3a10..2b4d5f5 100644 --- a/example.py +++ b/example.py @@ -3,6 +3,7 @@ use e.g. with "python example.py user@example.com myverysecretpassword" """ + import argparse import logging @@ -10,7 +11,11 @@ PARSER = argparse.ArgumentParser(description="Get metrics from Balboa Controlmyspa") PARSER.add_argument( - "-v", "--verbose", help="enable debug logging", action="store_true", default=False, + "-v", + "--verbose", + help="enable debug logging", + action="store_true", + default=False, ) PARSER.add_argument("email", help="email to log in to controlmyspa.com") PARSER.add_argument("password", help="password to log in to controlmyspa.com") @@ -35,7 +40,7 @@ print("current temp", API.current_temp) print("desired temp", API.desired_temp) -# API.desired_temp = 36 if API.desired_temp == 37 else 37 +API.desired_temp = 36 if API.desired_temp == 37 else 37 print("temp range", API.temp_range) print("panel lock", API.panel_lock)