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:
parent
914384578e
commit
8f33ad38cf
3 changed files with 16 additions and 14 deletions
|
@ -92,15 +92,17 @@ def api_error_as_bleak_error(func: _WrapFuncType) -> _WrapFuncType:
|
||||||
# Because callbacks are delivered asynchronously it's possible
|
# Because callbacks are delivered asynchronously it's possible
|
||||||
# that we find out about the disconnection during the operation
|
# that we find out about the disconnection during the operation
|
||||||
# before the callback is delivered.
|
# before the callback is delivered.
|
||||||
|
|
||||||
|
# pylint: disable=protected-access
|
||||||
if ex.error.error == -1:
|
if ex.error.error == -1:
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
"%s: %s - %s: BLE device disconnected during %s operation",
|
"%s: %s - %s: BLE device disconnected during %s operation",
|
||||||
self._source, # pylint: disable=protected-access
|
self._source,
|
||||||
self._ble_device.name, # pylint: disable=protected-access
|
self._ble_device.name,
|
||||||
self._ble_device.address, # pylint: disable=protected-access
|
self._ble_device.address,
|
||||||
func.__name__,
|
func.__name__,
|
||||||
)
|
)
|
||||||
self._async_ble_device_disconnected() # pylint: disable=protected-access
|
self._async_ble_device_disconnected()
|
||||||
raise BleakError(str(ex)) from ex
|
raise BleakError(str(ex)) from ex
|
||||||
except APIConnectionError as err:
|
except APIConnectionError as err:
|
||||||
raise BleakError(str(err)) from err
|
raise BleakError(str(err)) from err
|
||||||
|
|
|
@ -321,15 +321,15 @@ class KefMediaPlayer(MediaPlayerEntity):
|
||||||
return
|
return
|
||||||
|
|
||||||
mode = await self._speaker.get_mode()
|
mode = await self._speaker.get_mode()
|
||||||
self._dsp = dict(
|
self._dsp = {
|
||||||
desk_db=await self._speaker.get_desk_db(),
|
"desk_db": await self._speaker.get_desk_db(),
|
||||||
wall_db=await self._speaker.get_wall_db(),
|
"wall_db": await self._speaker.get_wall_db(),
|
||||||
treble_db=await self._speaker.get_treble_db(),
|
"treble_db": await self._speaker.get_treble_db(),
|
||||||
high_hz=await self._speaker.get_high_hz(),
|
"high_hz": await self._speaker.get_high_hz(),
|
||||||
low_hz=await self._speaker.get_low_hz(),
|
"low_hz": await self._speaker.get_low_hz(),
|
||||||
sub_db=await self._speaker.get_sub_db(),
|
"sub_db": await self._speaker.get_sub_db(),
|
||||||
**mode._asdict(),
|
**mode._asdict(),
|
||||||
)
|
}
|
||||||
|
|
||||||
async def async_added_to_hass(self) -> None:
|
async def async_added_to_hass(self) -> None:
|
||||||
"""Subscribe to DSP updates."""
|
"""Subscribe to DSP updates."""
|
||||||
|
|
|
@ -7,14 +7,14 @@
|
||||||
|
|
||||||
-c homeassistant/package_constraints.txt
|
-c homeassistant/package_constraints.txt
|
||||||
-r requirements_test_pre_commit.txt
|
-r requirements_test_pre_commit.txt
|
||||||
astroid==2.12.12
|
astroid==2.12.13
|
||||||
codecov==2.1.12
|
codecov==2.1.12
|
||||||
coverage==6.4.4
|
coverage==6.4.4
|
||||||
freezegun==1.2.2
|
freezegun==1.2.2
|
||||||
mock-open==1.4.0
|
mock-open==1.4.0
|
||||||
mypy==0.991
|
mypy==0.991
|
||||||
pre-commit==2.20.0
|
pre-commit==2.20.0
|
||||||
pylint==2.15.5
|
pylint==2.15.6
|
||||||
pipdeptree==2.3.1
|
pipdeptree==2.3.1
|
||||||
pytest-aiohttp==0.3.0
|
pytest-aiohttp==0.3.0
|
||||||
pytest-cov==3.0.0
|
pytest-cov==3.0.0
|
||||||
|
|
Loading…
Add table
Reference in a new issue