Use setup_component in tests v1 (#3507)

* update unittests like #3414

* setup_component - splunk

* setup_component - statsd

* fix statsd & splunk unittest config values

* component_setup - device_sun_light_trigger

* setup_component - introduction

* component_setup - persistent_notification

* setup_component - logentries, mqtt eventstream

* fix unittest logentries
This commit is contained in:
Pascal Vizeli 2016-09-25 23:15:21 +02:00 committed by GitHub
parent 0c0feda834
commit bbfd86dec3
16 changed files with 62 additions and 46 deletions

View file

@ -1,6 +1,7 @@
"""The tests for the Introduction component."""
import unittest
from homeassistant.bootstrap import setup_component
from homeassistant.components import introduction
from tests.common import get_test_home_assistant
@ -19,4 +20,4 @@ class TestIntroduction(unittest.TestCase):
def test_setup(self):
"""Test introduction setup."""
self.assertTrue(introduction.setup(self.hass, {}))
self.assertTrue(setup_component(self.hass, introduction.DOMAIN, {}))