Fix SyntaxError in f-strings for Python < 3.12 compatibility

This commit is contained in:
Claudio Lepín Mena
2026-01-30 08:56:54 -03:00
parent 27b41dfd41
commit f0b4edb508
+4 -4
View File
@@ -146,19 +146,19 @@ def main():
) )
elif args.config: 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: if lock_cmd:
config["SETTINGS"]["lock_cmd"] = 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: if unlock_cmd:
config["SETTINGS"]["unlock_cmd"] = 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: if sleep_time:
config["SETTINGS"]["sleep_time"] = 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: if discover_time:
config["SETTINGS"]["discover_time"] = discover_time config["SETTINGS"]["discover_time"] = discover_time