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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user