Skip to content

Commit 35f1ba2

Browse files
authored
feat: prepare to add all features to all fleets (#302)
* feat: prepare to add all features to all fleets Dashboard is going EOL. Prepare to move * Update test_sbc.py * Update pyproject.toml
1 parent c85b2c7 commit 35f1ba2

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

hm_pyhelper/sbc.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,12 @@ def is_commercial_fleet() -> bool:
220220
'''
221221
Return true if the device is in a commercial fleet. Otherwise return false.
222222
'''
223-
fleet_name = os.environ.get('BALENA_APP_NAME')
224-
fleet_id = int(os.environ.get('BALENA_APP_ID'))
223+
# all fleets will get commercial software
224+
# fleet_name = os.environ.get('BALENA_APP_NAME')
225+
# fleet_id = int(os.environ.get('BALENA_APP_ID'))
225226

226-
if not fleet_name.endswith('-c') or fleet_id not in COMMERCIAL_FLEETS:
227-
return False
227+
# if not fleet_name.endswith('-c') or fleet_id not in COMMERCIAL_FLEETS:
228+
# return False
228229

229230
return True
230231

hm_pyhelper/tests/test_sbc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ def test_is_commercial_fleet_true(self):
2424
@patch.dict('os.environ', {"BALENA_APP_NAME": "test"})
2525
@patch.dict('os.environ', {"BALENA_APP_ID": "8700"})
2626
def test_is_commercial_fleet_false(self):
27-
self.assertFalse(is_commercial_fleet())
27+
self.assertTrue(is_commercial_fleet())

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "hm_pyhelper"
7-
version = "0.14.37"
7+
version = "0.14.38"
88
description = "Helium Python Helper"
99
authors = ["Nebra Ltd <support@nebra.com>"]
1010
readme = "README.md"

0 commit comments

Comments
 (0)