mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 19:09:32 +00:00
Fix issue when data is None (#53875)
This commit is contained in:
@@ -30,6 +30,7 @@ async def test_get_preferences_no_data(hass, hass_ws_client) -> None:
|
||||
|
||||
async def test_get_preferences_default(hass, hass_ws_client, hass_storage) -> None:
|
||||
"""Test we get preferences."""
|
||||
assert not await is_configured(hass)
|
||||
manager = await data.async_get_manager(hass)
|
||||
manager.data = data.EnergyManager.default_preferences()
|
||||
client = await hass_ws_client(hass)
|
||||
|
||||
Reference in New Issue
Block a user