1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Unignore Ruff PLR in tests (#114470)

* Unignore Ruff PLR in tests

* Address review comments

* review comments

* fix import

* Update test_api.py

* Update test_api.py

* Update test_api.py
This commit is contained in:
Sid
2024-04-01 11:11:59 +02:00
committed by GitHub
parent dc59073f25
commit d5f883fbf0
169 changed files with 211 additions and 266 deletions

View File

@@ -21,10 +21,10 @@ class SampleRegistry(BaseRegistry):
self._store = storage.Store(hass, 1, "test")
self.save_calls = 0
def _data_to_save(self) -> None:
def _data_to_save(self) -> dict[str, Any]:
"""Return data of registry to save."""
self.save_calls += 1
return None
return {}
@pytest.mark.parametrize(