mirror of
https://github.com/home-assistant/core.git
synced 2026-07-06 22:36:33 +01:00
16 lines
547 B
Python
16 lines
547 B
Python
"""Tests for the Recovery Mode integration."""
|
|
|
|
from homeassistant.components.recovery_mode import DOMAIN
|
|
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 Recovery Mode works."""
|
|
assert await async_setup_component(hass, DOMAIN, {})
|
|
await hass.async_block_till_done()
|
|
notifications = async_get_persistent_notifications(hass)
|
|
assert len(notifications) == 1
|