mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Split bootstrap into bs + setup (#6416)
* Split bootstrap into bs + setup * Lint
This commit is contained in:
committed by
Pascal Vizeli
parent
bdf948d866
commit
2650c73a89
@@ -2,7 +2,7 @@
|
||||
import unittest
|
||||
from unittest.mock import patch
|
||||
|
||||
from homeassistant import bootstrap
|
||||
from homeassistant import setup
|
||||
from homeassistant.components import frontend
|
||||
|
||||
from tests.common import get_test_home_assistant
|
||||
@@ -28,7 +28,7 @@ class TestPanelIframe(unittest.TestCase):
|
||||
'url': 'not-a-url'}}]
|
||||
|
||||
for conf in to_try:
|
||||
assert not bootstrap.setup_component(
|
||||
assert not setup.setup_component(
|
||||
self.hass, 'panel_iframe', {
|
||||
'panel_iframe': conf
|
||||
})
|
||||
@@ -37,7 +37,7 @@ class TestPanelIframe(unittest.TestCase):
|
||||
'panels/ha-panel-iframe.html': 'md5md5'})
|
||||
def test_correct_config(self):
|
||||
"""Test correct config."""
|
||||
assert bootstrap.setup_component(
|
||||
assert setup.setup_component(
|
||||
self.hass, 'panel_iframe', {
|
||||
'panel_iframe': {
|
||||
'router': {
|
||||
|
||||
Reference in New Issue
Block a user