Update pylint to 2.15.7 (#82977)

This commit is contained in:
Marc Mueller 2022-11-30 12:20:18 +01:00 committed by GitHub
parent 0316800347
commit 490aec0b11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 4 deletions

View File

@ -296,7 +296,7 @@ class ESPHomeClient(BaseBleakClient):
address_type=self._address_type, address_type=self._address_type,
) )
) )
except Exception: # pylint: disable=broad-except except Exception:
with contextlib.suppress(BleakError): with contextlib.suppress(BleakError):
# If the connect call throws an exception, # If the connect call throws an exception,
# we need to make sure we await the future # we need to make sure we await the future

View File

@ -151,7 +151,7 @@ class KNXCommonFlow(ABC, FlowHandler):
# keep a reference to the generator to scan in background until user selects a connection type # keep a reference to the generator to scan in background until user selects a connection type
self._async_scan_gen = self._gatewayscanner.async_scan() self._async_scan_gen = self._gatewayscanner.async_scan()
try: try:
await self._async_scan_gen.__anext__() # pylint: disable=unnecessary-dunder-call await self._async_scan_gen.__anext__()
except StopAsyncIteration: except StopAsyncIteration:
pass # scan finished, no interfaces discovered pass # scan finished, no interfaces discovered
else: else:

View File

@ -2101,7 +2101,6 @@ class Config:
and "language" in owner_data["language"] and "language" in owner_data["language"]
): ):
with suppress(vol.InInvalid): with suppress(vol.InInvalid):
# pylint: disable-next=protected-access
data["language"] = cv.language( data["language"] = cv.language(
owner_data["language"]["language"] owner_data["language"]["language"]
) )

View File

@ -14,7 +14,7 @@ freezegun==1.2.2
mock-open==1.4.0 mock-open==1.4.0
mypy==0.991 mypy==0.991
pre-commit==2.20.0 pre-commit==2.20.0
pylint==2.15.6 pylint==2.15.7
pipdeptree==2.3.1 pipdeptree==2.3.1
pytest-asyncio==0.20.2 pytest-asyncio==0.20.2
pytest-aiohttp==1.0.4 pytest-aiohttp==1.0.4