From e826780660420a3f218be9a5c150a35823ddbbbb Mon Sep 17 00:00:00 2001 From: Kashif Iftikhar Date: Mon, 31 Jan 2022 22:25:17 +0500 Subject: [PATCH 1/2] Initial constants in the constants package. --- hm_pyhelper/constants/__init__.py | 0 hm_pyhelper/constants/diagnostics.py | 11 +++++++++++ hm_pyhelper/constants/shipping.py | 2 ++ setup.py | 2 +- 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 hm_pyhelper/constants/__init__.py create mode 100644 hm_pyhelper/constants/diagnostics.py create mode 100644 hm_pyhelper/constants/shipping.py diff --git a/hm_pyhelper/constants/__init__.py b/hm_pyhelper/constants/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/hm_pyhelper/constants/diagnostics.py b/hm_pyhelper/constants/diagnostics.py new file mode 100644 index 0000000..2d59846 --- /dev/null +++ b/hm_pyhelper/constants/diagnostics.py @@ -0,0 +1,11 @@ +# Keys that are expected to be in diagnostics report. +ECC_KEY = 'ECC' +ONBOARDING_KEY = 'onboarding_key' +ETH_MAC_ADDRESS_KEY = 'eth_mac_address' +WIFI_MAC_ADDRESS_KEY = 'wifi_mac_address' +PUBLIC_KEY = 'public_key' +BLUETOOTH_KEY = 'bluetooth' +VARIANT_KEY = 'VARIANT' +FREQUENCY_KEY = 'FREQ' +SERIAL_NUMBER_KEY = 'serial_number' +BALENA_DEVICE_ID_KEY = 'BALENA_DEVICE_UUID' diff --git a/hm_pyhelper/constants/shipping.py b/hm_pyhelper/constants/shipping.py new file mode 100644 index 0000000..f9cde0d --- /dev/null +++ b/hm_pyhelper/constants/shipping.py @@ -0,0 +1,2 @@ +DESTINATION_NAME_KEY = 'destination_shipping_label' +DESTINATION_ADD_GATEWAY_TXN_KEY = 'destination_shipping_add_gateway_txn' diff --git a/setup.py b/setup.py index e8fa903..4fc853b 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name='hm_pyhelper', - version='0.13.4', + version='0.13.5', author="Nebra Ltd", author_email="support@nebra.com", description="Helium Python Helper", From 77152da42a113e02b26991af29bfa749b1845b08 Mon Sep 17 00:00:00 2001 From: Kashif Iftikhar Date: Tue, 1 Feb 2022 05:21:25 +0500 Subject: [PATCH 2/2] Renaming destination_shipping_label to shipping_destination_label --- hm_pyhelper/constants/shipping.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hm_pyhelper/constants/shipping.py b/hm_pyhelper/constants/shipping.py index f9cde0d..758aacb 100644 --- a/hm_pyhelper/constants/shipping.py +++ b/hm_pyhelper/constants/shipping.py @@ -1,2 +1,2 @@ -DESTINATION_NAME_KEY = 'destination_shipping_label' -DESTINATION_ADD_GATEWAY_TXN_KEY = 'destination_shipping_add_gateway_txn' +DESTINATION_NAME_KEY = 'shipping_destination_label' +DESTINATION_ADD_GATEWAY_TXN_KEY = 'shipping_destination_add_gateway_txn'