mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
Update pylint to 2.17.2 (#91894)
This commit is contained in:
parent
1a00644b0a
commit
06520217bc
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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)
|
||||
|
@ -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."""
|
||||
|
@ -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__)
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user