Tweak template light tests (#71729)

This commit is contained in:
Erik Montnemery 2022-05-13 12:22:34 +02:00 committed by GitHub
parent dba2f5ab1c
commit 6cff2f8571
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 592 additions and 913 deletions

View file

@ -1,6 +1,4 @@
"""template conftest."""
import json
import pytest
from homeassistant.setup import async_setup_component
@ -15,18 +13,8 @@ def calls(hass):
@pytest.fixture
def config_addon():
"""Add entra configuration items."""
return None
@pytest.fixture
async def start_ha(hass, count, domain, config_addon, config, caplog):
async def start_ha(hass, count, domain, config, caplog):
"""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):
assert await async_setup_component(
hass,