diff --git a/homeassistant/components/forked_daapd/browse_media.py b/homeassistant/components/forked_daapd/browse_media.py index 099a042f58a..a4c97d3a035 100644 --- a/homeassistant/components/forked_daapd/browse_media.py +++ b/homeassistant/components/forked_daapd/browse_media.py @@ -172,7 +172,7 @@ async def get_owntone_content( result = await master.api.get_artists() # list of artists with name, uri elif media_content.type == MediaType.GENRE: if result := await master.api.get_genres(): # returns list of genre names - for item in result: # pylint: disable=not-an-iterable + for item in result: # add generated genre uris to list of genre names item["uri"] = create_owntone_uri( MediaType.GENRE, cast(str, item["name"]) diff --git a/homeassistant/components/recorder/pool.py b/homeassistant/components/recorder/pool.py index a8579df834c..35a8623a1c1 100644 --- a/homeassistant/components/recorder/pool.py +++ b/homeassistant/components/recorder/pool.py @@ -128,6 +128,7 @@ class MutexPool(StaticPool): # type: ignore[misc] if DEBUG_MUTEX_POOL: _LOGGER.debug("%s wait conn%s", threading.current_thread().name, trace_msg) + # pylint: disable-next=consider-using-with got_lock = MutexPool.pool_lock.acquire(timeout=1) if not got_lock: raise SQLAlchemyError diff --git a/homeassistant/components/repairs/issue_handler.py b/homeassistant/components/repairs/issue_handler.py index 35a8d9cc49d..9c5e3854773 100644 --- a/homeassistant/components/repairs/issue_handler.py +++ b/homeassistant/components/repairs/issue_handler.py @@ -11,8 +11,6 @@ from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers.integration_platform import ( async_process_integration_platforms, ) - -# pylint: disable-next=unused-import from homeassistant.helpers.issue_registry import ( async_delete_issue, async_get as async_get_issue_registry, diff --git a/homeassistant/components/zha/core/channels/manufacturerspecific.py b/homeassistant/components/zha/core/channels/manufacturerspecific.py index 724a794007d..febe589dffa 100644 --- a/homeassistant/components/zha/core/channels/manufacturerspecific.py +++ b/homeassistant/components/zha/core/channels/manufacturerspecific.py @@ -158,7 +158,7 @@ class InovelliConfigEntityChannel(ZigbeeChannel): Clear = 0xFF REPORT_CONFIG = () - ZCL_INIT_ATTRS = { # pylint: disable=invalid-name + ZCL_INIT_ATTRS = { "dimming_speed_up_remote": False, "dimming_speed_up_local": False, "ramp_rate_off_to_on_local": False, diff --git a/homeassistant/helpers/recorder.py b/homeassistant/helpers/recorder.py index 32e08874a63..5545aa09f01 100644 --- a/homeassistant/helpers/recorder.py +++ b/homeassistant/helpers/recorder.py @@ -38,7 +38,6 @@ async def async_wait_recorder(hass: HomeAssistant) -> bool: Returns False immediately if the recorder is not enabled. """ - # pylint: disable-next=import-outside-toplevel if DOMAIN not in hass.data: return False db_connected: asyncio.Future[bool] = hass.data[DOMAIN].db_connected diff --git a/requirements_test.txt b/requirements_test.txt index 82432d85072..2cbe45ace49 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.12.5 +astroid==2.12.12 codecov==2.1.12 coverage==6.4.4 freezegun==1.2.2 mock-open==1.4.0 mypy==0.982 pre-commit==2.20.0 -pylint==2.15.0 +pylint==2.15.4 pipdeptree==2.3.1 pytest-aiohttp==0.3.0 pytest-cov==3.0.0