Unignore Ruff PLE, PLW in tests (#114406)

* Unignore Ruff PLE, PLW in tests

* fix tests
This commit is contained in:
Sid
2024-03-29 23:58:30 +01:00
committed by GitHub
parent 969b027a46
commit aec7a67a58
14 changed files with 16 additions and 25 deletions

View File

@@ -344,7 +344,10 @@ def test_supported_features_string(caplog: pytest.LogCaptureFixture) -> None:
State("test.entity_id", "on", {"supported_features": "invalid"}),
)
assert entity.is_supported() is False
assert "Entity test.entity_id contains invalid supported_features value invalid"
assert (
"Entity test.entity_id contains invalid supported_features value invalid"
in caplog.text
)
def test_request_data() -> None: