Return None to indicate no config found (#15147)
* Return None to indicate no config found * Fix tests
This commit is contained in:
parent
6e4fb7a937
commit
c79c94550f
4 changed files with 16 additions and 2 deletions
|
@ -52,7 +52,7 @@ async def test_loading_non_existing(hass, store):
|
|||
"""Test we can save and load data."""
|
||||
with patch('homeassistant.util.json.open', side_effect=FileNotFoundError):
|
||||
data = await store.async_load()
|
||||
assert data == {}
|
||||
assert data is None
|
||||
|
||||
|
||||
async def test_saving_with_delay(hass, store, mock_save):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue