Skip to content

Commit

Permalink
Merge pull request #89 from qlrd/main
Browse files Browse the repository at this point in the history
Fix on pylint's disable
  • Loading branch information
qlrd authored Sep 26, 2024
2 parents f1e6fb5 + 24db4a7 commit e56b0ad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/screens/select_device_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]"]
Expand Down

0 comments on commit e56b0ad

Please sign in to comment.