mirror of
https://github.com/home-assistant/core.git
synced 2026-08-15 01:32:55 +01:00
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> Signed-off-by: Branden Cash <203336+ammmze@users.noreply.github.com>
23 lines
732 B
Python
23 lines
732 B
Python
"""Tests for Srp Energy component Init."""
|
|
|
|
from homeassistant.components.recorder import Recorder
|
|
from homeassistant.config_entries import ConfigEntryState
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
|
|
async def test_setup_entry(
|
|
recorder_mock: Recorder, hass: HomeAssistant, init_integration
|
|
) -> None:
|
|
"""Test setup entry."""
|
|
assert init_integration.state is ConfigEntryState.LOADED
|
|
|
|
|
|
async def test_unload_entry(
|
|
recorder_mock: Recorder, hass: HomeAssistant, init_integration
|
|
) -> None:
|
|
"""Test being able to unload an entry."""
|
|
assert init_integration.state is ConfigEntryState.LOADED
|
|
|
|
assert await hass.config_entries.async_unload(init_integration.entry_id)
|
|
await hass.async_block_till_done()
|