2018-07-17 10:49:15 +02:00
|
|
|
"""Tests for the onboarding component."""
|
|
|
|
|
|
|
|
from homeassistant.components import onboarding
|
|
|
|
|
|
|
|
|
|
|
|
def mock_storage(hass_storage, data):
|
|
|
|
"""Mock the onboarding storage."""
|
|
|
|
hass_storage[onboarding.STORAGE_KEY] = {
|
2019-07-31 12:25:30 -07:00
|
|
|
"version": onboarding.STORAGE_VERSION,
|
|
|
|
"data": data,
|
2018-07-17 10:49:15 +02:00
|
|
|
}
|