mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Tweak template light tests (#71729)
This commit is contained in:
parent
dba2f5ab1c
commit
6cff2f8571
@ -1,6 +1,4 @@
|
|||||||
"""template conftest."""
|
"""template conftest."""
|
||||||
import json
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from homeassistant.setup import async_setup_component
|
from homeassistant.setup import async_setup_component
|
||||||
@ -15,18 +13,8 @@ def calls(hass):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def config_addon():
|
async def start_ha(hass, count, domain, config, caplog):
|
||||||
"""Add entra configuration items."""
|
|
||||||
return None
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
async def start_ha(hass, count, domain, config_addon, config, caplog):
|
|
||||||
"""Do setup of integration."""
|
"""Do setup of integration."""
|
||||||
if config_addon:
|
|
||||||
for key, value in config_addon.items():
|
|
||||||
config = config.replace(key, value)
|
|
||||||
config = json.loads(config)
|
|
||||||
with assert_setup_component(count, domain):
|
with assert_setup_component(count, domain):
|
||||||
assert await async_setup_component(
|
assert await async_setup_component(
|
||||||
hass,
|
hass,
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user