1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-23 20:39:01 +00:00

Enable ruff TRY401 (#114395)

* Enable ruff TRY401

* fix tests
This commit is contained in:
Sid
2024-03-29 07:20:36 +01:00
committed by GitHub
parent 530552b4f5
commit a5b609f081
61 changed files with 159 additions and 182 deletions

View File

@@ -143,7 +143,7 @@ raise Exception('boom')
hass.async_add_executor_job(execute, hass, "test.py", source, {})
await hass.async_block_till_done()
assert "Error executing script: boom" in caplog.text
assert "Error executing script" in caplog.text
async def test_execute_runtime_error_with_response(hass: HomeAssistant) -> None: