diff --git a/src/app/screens/select_device_screen.py b/src/app/screens/select_device_screen.py index e0a3f0b..2389616 100644 --- a/src/app/screens/select_device_screen.py +++ b/src/app/screens/select_device_screen.py @@ -99,9 +99,8 @@ def on_update(): cleanre = re.compile("\\[.*?\\]") clean_text = re.sub(cleanre, "", value) if ( - # pylint: disable=consider-iterating-dictionary - clean_text in VALID_DEVICES_VERSIONS.keys() - and device not in VALID_DEVICES_VERSIONS[clean_text] + clean_text in VALID_DEVICES_VERSIONS + and device not in VALID_DEVICES_VERSIONS.get(clean_text, []) ): self.ids[f"select_device_{device}"].text = "".join( ["[color=#333333]", device, "[/color]"]