diff --git a/homeassistant/components/assist_pipeline/websocket_api.py b/homeassistant/components/assist_pipeline/websocket_api.py index f8712dc063b..475fb71dbf6 100644 --- a/homeassistant/components/assist_pipeline/websocket_api.py +++ b/homeassistant/components/assist_pipeline/websocket_api.py @@ -1,6 +1,6 @@ """Assist pipeline Websocket API.""" import asyncio -import audioop # pylint: disable=deprecated-module +import audioop from collections.abc import AsyncGenerator, Callable import logging from typing import Any diff --git a/homeassistant/components/hassio/http.py b/homeassistant/components/hassio/http.py index fecf05f74b4..2480353c2d3 100644 --- a/homeassistant/components/hassio/http.py +++ b/homeassistant/components/hassio/http.py @@ -35,7 +35,6 @@ _LOGGER = logging.getLogger(__name__) MAX_UPLOAD_SIZE = 1024 * 1024 * 1024 -# pylint: disable=implicit-str-concat NO_TIMEOUT = re.compile( r"^(?:" r"|backups/.+/full" diff --git a/homeassistant/components/onvif/camera.py b/homeassistant/components/onvif/camera.py index 6dd489b12f9..7a87ec66c83 100644 --- a/homeassistant/components/onvif/camera.py +++ b/homeassistant/components/onvif/camera.py @@ -204,7 +204,7 @@ class ONVIFCameraEntity(ONVIFBaseEntity, Camera): self._stream_uri_future = loop.create_future() try: uri_no_auth = await self.device.async_get_stream_uri(self.profile) - except (asyncio.TimeoutError, Exception) as err: # pylint: disable=broad-except + except (asyncio.TimeoutError, Exception) as err: LOGGER.error("Failed to get stream uri: %s", err) if self._stream_uri_future: self._stream_uri_future.set_exception(err) diff --git a/homeassistant/components/recorder/models/legacy.py b/homeassistant/components/recorder/models/legacy.py index b29b9250302..398ad773ba2 100644 --- a/homeassistant/components/recorder/models/legacy.py +++ b/homeassistant/components/recorder/models/legacy.py @@ -22,8 +22,6 @@ from .time import ( process_timestamp_to_utc_isoformat, ) -# pylint: disable=invalid-name - class LegacyLazyStatePreSchema31(State): """A lazy version of core State before schema 31.""" diff --git a/homeassistant/components/recorder/models/state.py b/homeassistant/components/recorder/models/state.py index 84ae6ae4462..523ffdf1852 100644 --- a/homeassistant/components/recorder/models/state.py +++ b/homeassistant/components/recorder/models/state.py @@ -19,8 +19,6 @@ import homeassistant.util.dt as dt_util from .state_attributes import decode_attributes_from_source from .time import process_timestamp -# pylint: disable=invalid-name - _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/sharkiq/config_flow.py b/homeassistant/components/sharkiq/config_flow.py index 57de36ce415..4161a5f5357 100644 --- a/homeassistant/components/sharkiq/config_flow.py +++ b/homeassistant/components/sharkiq/config_flow.py @@ -94,7 +94,7 @@ class SharkIqConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): errors["base"] = "cannot_connect" except InvalidAuth: errors["base"] = "invalid_auth" - except UnknownAuth: # pylint: disable=broad-except + except UnknownAuth: errors["base"] = "unknown" return info, errors diff --git a/homeassistant/components/zha/light.py b/homeassistant/components/zha/light.py index 99c759dfbc6..05f03f7631e 100644 --- a/homeassistant/components/zha/light.py +++ b/homeassistant/components/zha/light.py @@ -1111,9 +1111,7 @@ class LightGroup(BaseLight, ZhaGroupEntity): # If at least one member has a color cluster and doesn't support it, # it's not used. for member in group.members: - for ( - endpoint - ) in member.device._endpoints.values(): # pylint: disable=protected-access + for endpoint in member.device._endpoints.values(): for cluster_handler in endpoint.all_cluster_handlers.values(): if ( cluster_handler.name == CLUSTER_HANDLER_COLOR diff --git a/requirements_test.txt b/requirements_test.txt index 60c8cdd6a3e..82e861fc9e9 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -7,14 +7,14 @@ -c homeassistant/package_constraints.txt -r requirements_test_pre_commit.txt -astroid==2.15.0 +astroid==2.15.3 coverage==7.2.3 freezegun==1.2.2 mock-open==1.4.0 mypy==1.2.0 pre-commit==3.1.0 pydantic==1.10.7 -pylint==2.17.0 +pylint==2.17.2 pylint-per-file-ignores==1.1.0 pipdeptree==2.7.0 pytest-asyncio==0.20.3