mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
Fix lovelace save (#19162)
This commit is contained in:
@@ -101,8 +101,8 @@ class LovelaceStorage:
|
||||
|
||||
async def async_save(self, config):
|
||||
"""Save config."""
|
||||
self._data = {'config': config}
|
||||
await self._store.async_save(config)
|
||||
self._data['config'] = config
|
||||
await self._store.async_save(self._data)
|
||||
|
||||
|
||||
class LovelaceYAML:
|
||||
|
@@ -34,7 +34,7 @@ async def test_lovelace_from_storage(hass, hass_ws_client, hass_storage):
|
||||
response = await client.receive_json()
|
||||
assert response['success']
|
||||
assert hass_storage[lovelace.STORAGE_KEY]['data'] == {
|
||||
'yo': 'hello'
|
||||
'config': {'yo': 'hello'}
|
||||
}
|
||||
|
||||
# Load new config
|
||||
|
Reference in New Issue
Block a user