Update pylint to 2.15.4 (#80612)
parent
540d959dd2
commit
d78c2a31a1
|
@ -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"])
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue