Enable first batch of Ruff RET rules (#114480)
* Enable first batch of Ruff RET rules * disable pylint rules
This commit is contained in:
parent
6e3e09f2c3
commit
d846676e84
10 changed files with 35 additions and 42 deletions
|
@ -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]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue