2021-04-09 17:36:13 +00:00
|
|
|
"""The tests for notify_events."""
|
2024-03-08 13:55:15 +00:00
|
|
|
|
2021-04-09 17:36:13 +00:00
|
|
|
from homeassistant.components.notify_events.const import DOMAIN
|
2023-02-08 15:48:54 +00:00
|
|
|
from homeassistant.core import HomeAssistant
|
2021-04-09 17:36:13 +00:00
|
|
|
from homeassistant.setup import async_setup_component
|
|
|
|
|
|
|
|
|
2023-02-08 15:48:54 +00:00
|
|
|
async def test_setup(hass: HomeAssistant) -> None:
|
2021-04-09 17:36:13 +00:00
|
|
|
"""Test setup of the integration."""
|
|
|
|
config = {"notify_events": {"token": "ABC"}}
|
|
|
|
assert await async_setup_component(hass, DOMAIN, config)
|
|
|
|
await hass.async_block_till_done()
|
|
|
|
|
|
|
|
assert DOMAIN in hass.data
|