Update pylint to 2.15.6 (#82440)

* Update pylint to 2.15.6

* Use single pylint disable

* Use implicit dict constructor
This commit is contained in:
Marc Mueller 2022-11-21 08:58:45 +01:00 committed by GitHub
parent 914384578e
commit 8f33ad38cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 14 deletions

View file

@ -92,15 +92,17 @@ def api_error_as_bleak_error(func: _WrapFuncType) -> _WrapFuncType:
# Because callbacks are delivered asynchronously it's possible
# that we find out about the disconnection during the operation
# before the callback is delivered.
# pylint: disable=protected-access
if ex.error.error == -1:
_LOGGER.debug(
"%s: %s - %s: BLE device disconnected during %s operation",
self._source, # pylint: disable=protected-access
self._ble_device.name, # pylint: disable=protected-access
self._ble_device.address, # pylint: disable=protected-access
self._source,
self._ble_device.name,
self._ble_device.address,
func.__name__,
)
self._async_ble_device_disconnected() # pylint: disable=protected-access
self._async_ble_device_disconnected()
raise BleakError(str(ex)) from ex
except APIConnectionError as err:
raise BleakError(str(err)) from err

View file

@ -321,15 +321,15 @@ class KefMediaPlayer(MediaPlayerEntity):
return
mode = await self._speaker.get_mode()
self._dsp = dict(
desk_db=await self._speaker.get_desk_db(),
wall_db=await self._speaker.get_wall_db(),
treble_db=await self._speaker.get_treble_db(),
high_hz=await self._speaker.get_high_hz(),
low_hz=await self._speaker.get_low_hz(),
sub_db=await self._speaker.get_sub_db(),
self._dsp = {
"desk_db": await self._speaker.get_desk_db(),
"wall_db": await self._speaker.get_wall_db(),
"treble_db": await self._speaker.get_treble_db(),
"high_hz": await self._speaker.get_high_hz(),
"low_hz": await self._speaker.get_low_hz(),
"sub_db": await self._speaker.get_sub_db(),
**mode._asdict(),
)
}
async def async_added_to_hass(self) -> None:
"""Subscribe to DSP updates."""

View file

@ -7,14 +7,14 @@
-c homeassistant/package_constraints.txt
-r requirements_test_pre_commit.txt
astroid==2.12.12
astroid==2.12.13
codecov==2.1.12
coverage==6.4.4
freezegun==1.2.2
mock-open==1.4.0
mypy==0.991
pre-commit==2.20.0
pylint==2.15.5
pylint==2.15.6
pipdeptree==2.3.1
pytest-aiohttp==0.3.0
pytest-cov==3.0.0