1
mirror of https://github.com/home-assistant/core synced 2024-09-25 00:41:32 +02:00
ha-core/tests/components/webostv/__init__.py
Shay Levy 4a921ac67f
Remove webostv deprecated YAML import (#69043)
* webostv: remove deprecated YAML import

* Remove unused CUSTOMIZE_SCHEMA and WEBOSTV_CONFIG_FILE
2022-04-01 11:05:59 +03:00

33 lines
828 B
Python

"""Tests for the WebOS TV integration."""
from homeassistant.components.webostv.const import DOMAIN
from homeassistant.const import CONF_CLIENT_SECRET, CONF_HOST
from homeassistant.setup import async_setup_component
from .const import CLIENT_KEY, FAKE_UUID, HOST, TV_NAME
from tests.common import MockConfigEntry
async def setup_webostv(hass, unique_id=FAKE_UUID):
"""Initialize webostv and media_player for tests."""
entry = MockConfigEntry(
domain=DOMAIN,
data={
CONF_HOST: HOST,
CONF_CLIENT_SECRET: CLIENT_KEY,
},
title=TV_NAME,
unique_id=unique_id,
)
entry.add_to_hass(hass)
await async_setup_component(
hass,
DOMAIN,
{DOMAIN: {CONF_HOST: HOST}},
)
await hass.async_block_till_done()
return entry