Enable first batch of Ruff RET rules (#114480)

* Enable first batch of Ruff RET rules

* disable pylint rules
This commit is contained in:
Sid 2024-03-31 11:30:59 +02:00 committed by GitHub
parent 6e3e09f2c3
commit d846676e84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 35 additions and 42 deletions

View file

@ -32,10 +32,9 @@ def entities_fixture(
"""Set up the test environment."""
if request.param == "entities_unique_id":
return entities_unique_id(entity_registry)
elif request.param == "entities_no_unique_id":
if request.param == "entities_no_unique_id":
return entities_no_unique_id(hass)
else:
raise RuntimeError("Invalid setup fixture")
raise RuntimeError("Invalid setup fixture")
def entities_unique_id(entity_registry: er.EntityRegistry) -> dict[str, str]: