diff --git a/e2e/test_008_about_screen.py b/e2e/test_008_about_screen.py index 79c9d9b..8cd697c 100644 --- a/e2e/test_008_about_screen.py +++ b/e2e/test_008_about_screen.py @@ -42,7 +42,7 @@ def test_render_main_screen(self, mock_get_locale): text = "".join( [ - "[ref=SourceCode][b]v0.0.20-alpha-2[/b][/ref]", + "[ref=SourceCode][b]v0.0.20-alpha-3[/b][/ref]", "\n", "\n", "follow us on X: ", @@ -80,7 +80,7 @@ def test_update_locale(self, mock_get_locale): text = "".join( [ - "[ref=SourceCode][b]v0.0.20-alpha-2[/b][/ref]", + "[ref=SourceCode][b]v0.0.20-alpha-3[/b][/ref]", "\n", "\n", "siga-nos no X: ", diff --git a/pyproject.toml b/pyproject.toml index 1ce178f..9046fdf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ prefer-active-python = true [tool.poetry] name = "krux-installer" -version = "0.0.20-alpha-2" +version = "0.0.20-alpha-3" description = "A GUI based application to flash Krux firmware on K210 based devices" authors = [ "qlrd " diff --git a/src/app/screens/select_device_screen.py b/src/app/screens/select_device_screen.py index d325b8e..e0a3f0b 100644 --- a/src/app/screens/select_device_screen.py +++ b/src/app/screens/select_device_screen.py @@ -98,7 +98,11 @@ def on_update(): ): cleanre = re.compile("\\[.*?\\]") clean_text = re.sub(cleanre, "", value) - if device not in VALID_DEVICES_VERSIONS[clean_text]: + if ( + # pylint: disable=consider-iterating-dictionary + clean_text in VALID_DEVICES_VERSIONS.keys() + and device not in VALID_DEVICES_VERSIONS[clean_text] + ): self.ids[f"select_device_{device}"].text = "".join( ["[color=#333333]", device, "[/color]"] ) diff --git a/src/utils/constants/__init__.py b/src/utils/constants/__init__.py index 891e92d..4a0d4ca 100644 --- a/src/utils/constants/__init__.py +++ b/src/utils/constants/__init__.py @@ -33,6 +33,7 @@ ROOT_DIRNAME = os.path.abspath(os.path.dirname(__file__)) VALID_DEVICES_VERSIONS = { + "v24.09.1": ["m5stickv", "amigo", "dock", "bit", "yahboom", "cube", "wonder_mv"], "v24.09.0": ["m5stickv", "amigo", "dock", "bit", "yahboom", "cube", "wonder_mv"], "v24.07.0": ["m5stickv", "amigo", "dock", "bit", "yahboom", "cube"], "v24.03.0": ["m5stickv", "amigo", "dock", "bit", "yahboom"],