Enable Ruff PT015 (#86775)

This commit is contained in:
Franck Nijhof
2023-01-27 11:10:29 +01:00
committed by GitHub
parent 49148421cb
commit 57cf11f067
19 changed files with 43 additions and 36 deletions

View File

@@ -330,7 +330,7 @@ async def test_require_admin(hass, hass_read_only_user):
context=ha.Context(user_id=hass_read_only_user.id),
blocking=True,
)
assert False, f"Should have raises for {service}"
pytest.fail(f"Should have raises for {service}")
with pytest.raises(Unauthorized):
await hass.services.async_call(