14 lines
481 B
Python
14 lines
481 B
Python
"""Tests for safe mode integration."""
|
|
from homeassistant.core import HomeAssistant
|
|
from homeassistant.setup import async_setup_component
|
|
|
|
from tests.common import async_get_persistent_notifications
|
|
|
|
|
|
async def test_works(hass: HomeAssistant) -> None:
|
|
"""Test safe mode works."""
|
|
assert await async_setup_component(hass, "safe_mode", {})
|
|
await hass.async_block_till_done()
|
|
notifications = async_get_persistent_notifications(hass)
|
|
assert len(notifications) == 1
|