From 923bd67e063d551f1394cdf5d3c8cbea46967066 Mon Sep 17 00:00:00 2001 From: Ken Van Hoeylandt Date: Wed, 12 Nov 2025 00:23:16 +0100 Subject: [PATCH] Simplification --- device.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/device.py b/device.py index 1d8b2e6a..d4f3acf9 100644 --- a/device.py +++ b/device.py @@ -42,6 +42,8 @@ def read_file(path: str): def read_properties_file(path): config = configparser.RawConfigParser() + # Don't convert keys to lowercase + config.optionxform = str config.read(path) return config @@ -200,7 +202,7 @@ def write_custom_sdkconfig(output_file, device_properties: ConfigParser): section = device_properties["sdkconfig"] for key in section.keys(): value = section[key].replace("\"", "\\\"") - output_file.write(f"{key.upper()}={value}\n") + output_file.write(f"{key}={value}\n") def write_properties(output_file, device_properties: ConfigParser, device_id: str, is_dev: bool): write_defaults(output_file)