core/tests/components/onboarding/__init__.py

12 lines
290 B
Python

"""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] = {
"version": onboarding.STORAGE_VERSION,
"data": data,
}