Skip to content

Commit

Permalink
Bump pylint from 2.10.2 to 2.11.1 (#104)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Otto winter <[email protected]>
  • Loading branch information
dependabot[bot] and OttoWinter authored Sep 19, 2021
1 parent ae41373 commit 4e57399
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aioesphomeapi/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def is_response(msg: message.Message) -> bool:
send_msg, is_response, is_response, timeout=timeout
)
if len(res) != 1:
raise APIConnectionError("Expected one result, got {}".format(len(res)))
raise APIConnectionError(f"Expected one result, got {len(res)}")

return res[0]

Expand Down
2 changes: 1 addition & 1 deletion aioesphomeapi/host_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ async def _async_resolve_host_getaddrinfo(
host, port, type=socket.SOCK_STREAM, proto=socket.IPPROTO_TCP
)
except OSError as err:
raise APIConnectionError("Error resolving IP address: {}".format(err))
raise APIConnectionError(f"Error resolving IP address: {err}")

addrs: List[AddrInfo] = []
for family, type_, proto, _, raw in res:
Expand Down
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pylint==2.10.2
pylint==2.11.1
black==21.9b0
flake8==3.9.2
isort==5.9.3
Expand Down

0 comments on commit 4e57399

Please sign in to comment.