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
13 changed files with 15 additions and 15 deletions

View File

@@ -72,7 +72,7 @@ def test_component_loader_non_existing(hass: HomeAssistant) -> None:
"""Test loading components."""
components = loader.Components(hass)
with pytest.raises(ImportError):
components.non_existing
_ = components.non_existing
async def test_component_wrapper(hass: HomeAssistant) -> None: