Update pylint to 2.13.5 (#69989)
This commit is contained in:
parent
2b69dffe57
commit
e407960f68
7 changed files with 15 additions and 19 deletions
|
@ -112,7 +112,6 @@ 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
|
||||
|
|
|
@ -258,9 +258,7 @@ class SamsungTVDevice(MediaPlayerEntity):
|
|||
except asyncio.TimeoutError as err:
|
||||
# No need to try again
|
||||
self._app_list_event.set()
|
||||
LOGGER.debug(
|
||||
"Failed to load app list from %s: %s", self._host, err.__repr__()
|
||||
)
|
||||
LOGGER.debug("Failed to load app list from %s: %r", self._host, err)
|
||||
|
||||
async def _async_startup_dmr(self) -> None:
|
||||
assert self._ssdp_rendering_control_location is not None
|
||||
|
@ -378,9 +376,7 @@ class SamsungTVDevice(MediaPlayerEntity):
|
|||
try:
|
||||
await dmr_device.async_set_volume_level(volume)
|
||||
except UpnpActionResponseError as err:
|
||||
LOGGER.warning(
|
||||
"Unable to set volume level on %s: %s", self._host, err.__repr__()
|
||||
)
|
||||
LOGGER.warning("Unable to set volume level on %s: %r", self._host, err)
|
||||
|
||||
async def async_volume_up(self) -> None:
|
||||
"""Volume up the media player."""
|
||||
|
|
|
@ -121,11 +121,13 @@ def setup_platform(
|
|||
]
|
||||
|
||||
master = next(
|
||||
[
|
||||
device
|
||||
for device in hass.data[DATA_SOUNDTOUCH]
|
||||
if device.entity_id == master_device_id
|
||||
].__iter__(),
|
||||
iter(
|
||||
[
|
||||
device
|
||||
for device in hass.data[DATA_SOUNDTOUCH]
|
||||
if device.entity_id == master_device_id
|
||||
]
|
||||
),
|
||||
None,
|
||||
)
|
||||
|
||||
|
@ -357,9 +359,9 @@ class SoundTouchDevice(MediaPlayerEntity):
|
|||
# Preset
|
||||
presets = self._device.presets()
|
||||
preset = next(
|
||||
[
|
||||
preset for preset in presets if preset.preset_id == str(media_id)
|
||||
].__iter__(),
|
||||
iter(
|
||||
[preset for preset in presets if preset.preset_id == str(media_id)]
|
||||
),
|
||||
None,
|
||||
)
|
||||
if preset is not None:
|
||||
|
|
|
@ -23,7 +23,6 @@ TO_REDACT = {
|
|||
"name",
|
||||
"node_key",
|
||||
"user",
|
||||
"user",
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -377,7 +377,7 @@ def entity_selector_without_own_entities(
|
|||
entity_registry = er.async_get(handler.hass)
|
||||
entities = er.async_entries_for_config_entry(
|
||||
entity_registry,
|
||||
handler.config_entry.entry_id, # pylint: disable=protected-access
|
||||
handler.config_entry.entry_id,
|
||||
)
|
||||
entity_ids = [ent.entity_id for ent in entities]
|
||||
|
||||
|
|
|
@ -821,7 +821,7 @@ class TemplateState(State):
|
|||
|
||||
def __repr__(self) -> str:
|
||||
"""Representation of Template State."""
|
||||
return f"<template TemplateState({self._state.__repr__()})>"
|
||||
return f"<template TemplateState({self._state!r})>"
|
||||
|
||||
|
||||
def _collect_state(hass: HomeAssistant, entity_id: str) -> None:
|
||||
|
|
|
@ -13,7 +13,7 @@ freezegun==1.2.1
|
|||
mock-open==1.4.0
|
||||
mypy==0.942
|
||||
pre-commit==2.17.0
|
||||
pylint==2.13.3
|
||||
pylint==2.13.5
|
||||
pipdeptree==2.2.1
|
||||
pylint-strict-informational==0.1
|
||||
pytest-aiohttp==0.3.0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue