Replace pylint pointless-statement with ruff B018 (#113582)

* Replace pylint pointless-statement with ruff B018

* fix occurrences of B018

* disable pylint expression-not-assigned as well

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Sid 2024-03-17 10:58:14 +01:00 committed by GitHub
parent 7b20641651
commit 6113b99ddd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 15 additions and 15 deletions

View file

@ -340,7 +340,7 @@ async def async_load_base_functionality(hass: core.HomeAssistant) -> None:
asyncio event loop. By primeing the cache of uname we can
avoid the blocking call in the event loop.
"""
platform.uname().processor # pylint: disable=expression-not-assigned
_ = platform.uname().processor
# Load the registries and cache the result of platform.uname().processor
translation.async_setup(hass)