(device_id)
| 49 | return config |
| 50 | |
| 51 | def read_device_properties(device_id): |
| 52 | device_file_path = get_properties_file_path(device_id) |
| 53 | if not os.path.isfile(device_file_path): |
| 54 | exit_with_error(f"Device file not found: {device_file_path}") |
| 55 | return read_properties_file(device_file_path) |
| 56 | |
| 57 | def has_group(properties: ConfigParser, group: str): |
| 58 | return group in properties.sections() |
no test coverage detected