* Convert persistent notification tests to async * Create/dismiss persistent notifications in exposed functions, not service calls * Fix notify persistent_notification * Remove setting up persistent_notification * Drop more setups * Empty methods * Undeprecate sync methods because too big task * Fix setup clearing notifications * Fix a bunch of tests * Fix more tests * Uno mas * Test persistent notification events * Clean up stale comment Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
15 lines
505 B
Python
15 lines
505 B
Python
"""Tests for the samsungtv component."""
|
|
from homeassistant.components.samsungtv.const import DOMAIN as SAMSUNGTV_DOMAIN
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
from tests.common import MockConfigEntry
|
|
|
|
|
|
async def setup_samsungtv(hass: HomeAssistant, config: dict):
|
|
"""Set up mock Samsung TV."""
|
|
|
|
entry = MockConfigEntry(domain=SAMSUNGTV_DOMAIN, data=config)
|
|
entry.add_to_hass(hass)
|
|
assert await hass.config_entries.async_setup(entry.entry_id)
|
|
await hass.async_block_till_done()
|