summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin <KEIvanov@gmail.com>2022-05-15 03:04:13 +0300
committerGitHub <noreply@github.com>2022-05-15 03:04:13 +0300
commit4ccd5da6d06e740e0b49aced4ebe799a974ecd2a (patch)
tree61ebe173c132ec7650dc4c05ef2780045118d958
parent72fba22e6506e24dbd5f0061f27e40aa9717b779 (diff)
parent8b4117a68762c0707fb6cd95428082487bf0787c (diff)
Merge pull request #4 from x2es/bugfix_N3_make_class_optional
bugfix: option `[General]/Class=` is optional
-rw-r--r--bt_dualboot/__meta__.py2
-rw-r--r--bt_dualboot/bt_linux/bluetooth_device_factory.py2
-rw-r--r--pyproject.toml2
-rw-r--r--tests/bt_linux/data_samples/bt_sample_01/A4:6B:6C:9D:E2:FB/A4:BF:C6:D0:E5:FF/info1
-rw-r--r--tests_integration/cli/env_blank_linux/snapshots/test_cli/test_no_args/output2
-rw-r--r--tests_integration/cli/env_blank_linux/snapshots/test_cli/test_version/output2
-rw-r--r--tests_integration/cli/env_single_windows/snapshots/test_cli/test_no_args/output2
7 files changed, 6 insertions, 7 deletions
diff --git a/bt_dualboot/__meta__.py b/bt_dualboot/__meta__.py
index 0691301..4895839 100644
--- a/bt_dualboot/__meta__.py
+++ b/bt_dualboot/__meta__.py
@@ -2,5 +2,5 @@ APP_NAME = "bt-dualboot"
# NOTE: don't edit here
# version updated by `dev/pre-release/update-version` from `pyproject.toml`
-__version__ = "1.0.0"
+__version__ = "1.0.1"
diff --git a/bt_dualboot/bt_linux/bluetooth_device_factory.py b/bt_dualboot/bt_linux/bluetooth_device_factory.py
index 33d637f..5696064 100644
--- a/bt_dualboot/bt_linux/bluetooth_device_factory.py
+++ b/bt_dualboot/bt_linux/bluetooth_device_factory.py
@@ -35,7 +35,7 @@ def extract_info(device_info_path):
# fmt: off
return {
"name": config.get("General", "Name"),
- "class": config.get("General", "Class"),
+ "class": config.get("General", "Class", fallback=None),
"pairing_key": config.get("LinkKey", "Key"),
}
# fmt: on
diff --git a/pyproject.toml b/pyproject.toml
index a3424e2..723bde9 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bt-dualboot"
-version = "1.0.0"
+version = "1.0.1"
description = "Sync Bluetooth for dualboot Linux and Windows"
keywords = [ "bluetooth", "dualboot", "sync", "pairing", "keys" ]
authors = ["Konstantin Ivanov <KEIvanov@gmail.com>"]
diff --git a/tests/bt_linux/data_samples/bt_sample_01/A4:6B:6C:9D:E2:FB/A4:BF:C6:D0:E5:FF/info b/tests/bt_linux/data_samples/bt_sample_01/A4:6B:6C:9D:E2:FB/A4:BF:C6:D0:E5:FF/info
index e9d70fa..6d3c359 100644
--- a/tests/bt_linux/data_samples/bt_sample_01/A4:6B:6C:9D:E2:FB/A4:BF:C6:D0:E5:FF/info
+++ b/tests/bt_linux/data_samples/bt_sample_01/A4:6B:6C:9D:E2:FB/A4:BF:C6:D0:E5:FF/info
@@ -1,6 +1,5 @@
[General]
Name=DEV-1-01-Name
-Class=0x240404
SupportedTechnologies=BR/EDR;
Trusted=true
Blocked=false
diff --git a/tests_integration/cli/env_blank_linux/snapshots/test_cli/test_no_args/output b/tests_integration/cli/env_blank_linux/snapshots/test_cli/test_no_args/output
index 73e82d7..848d34c 100644
--- a/tests_integration/cli/env_blank_linux/snapshots/test_cli/test_no_args/output
+++ b/tests_integration/cli/env_blank_linux/snapshots/test_cli/test_no_args/output
@@ -7,7 +7,7 @@ usage: bt-dualboot [-h] [--version] [-l] [--list-win-mounts] [--bot]
[--dry-run] [--win MOUNT] [--sync MAC [MAC ...]]
[--sync-all] [-n] [-b [path]]
-Sync bluetooth keys from Linux to Windows (v1.0.0)
+Sync bluetooth keys from Linux to Windows (v1.0.1)
optional arguments:
-h, --help show this help message and exit
diff --git a/tests_integration/cli/env_blank_linux/snapshots/test_cli/test_version/output b/tests_integration/cli/env_blank_linux/snapshots/test_cli/test_version/output
index 39b8936..6c23c30 100644
--- a/tests_integration/cli/env_blank_linux/snapshots/test_cli/test_version/output
+++ b/tests_integration/cli/env_blank_linux/snapshots/test_cli/test_version/output
@@ -3,7 +3,7 @@ CMD: /src/bt-dualboot --version
RETCODE=0
STDOUT:
=======
-bt-dualboot 1.0.0
+bt-dualboot 1.0.1
-------------------------------------------------------------
STDERR:
diff --git a/tests_integration/cli/env_single_windows/snapshots/test_cli/test_no_args/output b/tests_integration/cli/env_single_windows/snapshots/test_cli/test_no_args/output
index ce1a38b..94aafc6 100644
--- a/tests_integration/cli/env_single_windows/snapshots/test_cli/test_no_args/output
+++ b/tests_integration/cli/env_single_windows/snapshots/test_cli/test_no_args/output
@@ -7,7 +7,7 @@ usage: bt-dualboot [-h] [--version] [-l] [--list-win-mounts] [--bot]
[--dry-run] [--win MOUNT] [--sync MAC [MAC ...]]
[--sync-all] [-n] [-b [path]]
-Sync bluetooth keys from Linux to Windows (v1.0.0)
+Sync bluetooth keys from Linux to Windows (v1.0.1)
optional arguments:
-h, --help show this help message and exit