Fix SyntaxError in f-strings for Python < 3.12 compatibility
This commit is contained in:
+4
-4
@@ -146,19 +146,19 @@ def main():
|
||||
)
|
||||
|
||||
elif args.config:
|
||||
lock_cmd = input(f"Lock command (current: {config["SETTINGS"]["lock_cmd"]}) : ")
|
||||
lock_cmd = input(f"Lock command (current: {config['SETTINGS']['lock_cmd']}) : ")
|
||||
if lock_cmd:
|
||||
config["SETTINGS"]["lock_cmd"] = lock_cmd
|
||||
|
||||
unlock_cmd = input(f"Unlock command (current: {config["SETTINGS"]["unlock_cmd"]}) : ")
|
||||
unlock_cmd = input(f"Unlock command (current: {config['SETTINGS']['unlock_cmd']}) : ")
|
||||
if unlock_cmd:
|
||||
config["SETTINGS"]["unlock_cmd"] = unlock_cmd
|
||||
|
||||
sleep_time = input(f"Time interval between checks in seconds (current: {config["SETTINGS"]["sleep_time"]}) : ")
|
||||
sleep_time = input(f"Time interval between checks in seconds (current: {config['SETTINGS']['sleep_time']}) : ")
|
||||
if sleep_time:
|
||||
config["SETTINGS"]["sleep_time"] = sleep_time
|
||||
|
||||
discover_time = input(f"Bluetooth device discovery time (current: {config["SETTINGS"]["discover_time"]}) : ")
|
||||
discover_time = input(f"Bluetooth device discovery time (current: {config['SETTINGS']['discover_time']}) : ")
|
||||
if discover_time:
|
||||
config["SETTINGS"]["discover_time"] = discover_time
|
||||
|
||||
|
||||
Reference in New Issue
Block a user