Skip to content

Commit

Permalink
Fix RET507 (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek authored Feb 21, 2024
1 parent dd60f8d commit 32183d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ ignore = [
"PLR2004", # Just annoying, not really useful
"PLR0912",
"PLW2901",
"RET507",
"SIM102",
]
select = ["ALL"]
Expand Down
3 changes: 1 addition & 2 deletions roombapy/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ def _get_response(self, ip=None):
response = _decode_data(raw_response)
if not response:
continue
else:
return response
return response
except socket.timeout:
self.log.info("Socket timeout")
return None
Expand Down

0 comments on commit 32183d4

Please sign in to comment.