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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user