mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Tests should all use test HA
This commit is contained in:
@@ -6,9 +6,10 @@ Tests demo lock component.
|
||||
"""
|
||||
import unittest
|
||||
|
||||
import homeassistant.core as ha
|
||||
from homeassistant.components import lock
|
||||
|
||||
from tests.common import get_test_home_assistant
|
||||
|
||||
|
||||
FRONT = 'lock.front_door'
|
||||
KITCHEN = 'lock.kitchen_door'
|
||||
@@ -18,7 +19,7 @@ class TestLockDemo(unittest.TestCase):
|
||||
""" Test the demo lock. """
|
||||
|
||||
def setUp(self): # pylint: disable=invalid-name
|
||||
self.hass = ha.HomeAssistant()
|
||||
self.hass = get_test_home_assistant()
|
||||
self.assertTrue(lock.setup(self.hass, {
|
||||
'lock': {
|
||||
'platform': 'demo'
|
||||
|
||||
Reference in New Issue
Block a user