Add litterrobot integration (#45886)
This commit is contained in:
parent
668574c48f
commit
e70d896e1b
18 changed files with 676 additions and 0 deletions
20
tests/components/litterrobot/test_init.py
Normal file
20
tests/components/litterrobot/test_init.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
"""Test Litter-Robot setup process."""
|
||||
from homeassistant.components import litterrobot
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from .common import CONFIG
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
|
||||
async def test_unload_entry(hass):
|
||||
"""Test being able to unload an entry."""
|
||||
entry = MockConfigEntry(
|
||||
domain=litterrobot.DOMAIN,
|
||||
data=CONFIG[litterrobot.DOMAIN],
|
||||
)
|
||||
entry.add_to_hass(hass)
|
||||
|
||||
assert await async_setup_component(hass, litterrobot.DOMAIN, {}) is True
|
||||
assert await litterrobot.async_unload_entry(hass, entry)
|
||||
assert hass.data[litterrobot.DOMAIN] == {}
|
Loading…
Add table
Add a link
Reference in a new issue