Enable Ruff B017 (#115335)

This commit is contained in:
Sid
2024-04-15 22:25:09 +02:00
committed by GitHub
parent c7e6f3696f
commit 5f055a64bb
6 changed files with 16 additions and 11 deletions

View File

@ -346,8 +346,9 @@ async def test_component_base_exception_setup(hass: HomeAssistant) -> None:
mock_integration(hass, MockModule("comp", setup=exception_setup))
with pytest.raises(BaseException):
with pytest.raises(BaseException) as exc_info:
await setup.async_setup_component(hass, "comp", {})
assert str(exc_info.value) == "fail!"
assert "comp" not in hass.config.components