Enable Ruff PT022 (#86792)

* Enable Ruff PT022

* Adjust found cases
This commit is contained in:
Franck Nijhof 2023-01-27 13:57:06 +01:00 committed by GitHub
parent 8c993116e1
commit ef800335fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 79 additions and 88 deletions

View file

@ -30,4 +30,4 @@ async def start_ha(hass, count, domain, config, caplog):
@pytest.fixture
async def caplog_setup_text(caplog):
"""Return setup log of integration."""
yield caplog.text
return caplog.text