From 60f40800c4e2f54b1739caf7795c7f64d9279ad1 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 12 Jan 2016 21:56:09 -0800 Subject: [PATCH] Use mock HA for locative tests --- tests/components/device_tracker/test_locative.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/components/device_tracker/test_locative.py b/tests/components/device_tracker/test_locative.py index b86f24455de..619fe929ac7 100644 --- a/tests/components/device_tracker/test_locative.py +++ b/tests/components/device_tracker/test_locative.py @@ -11,10 +11,10 @@ from unittest.mock import patch import requests from homeassistant import bootstrap, const -import homeassistant.core as ha import homeassistant.components.device_tracker as device_tracker import homeassistant.components.http as http -import homeassistant.components.zone as zone + +from tests.common import get_test_home_assistant SERVER_PORT = 8126 HTTP_BASE_URL = "http://127.0.0.1:{}".format(SERVER_PORT) @@ -34,7 +34,7 @@ def setUpModule(mock_get_local_ip): # pylint: disable=invalid-name """ Initalizes a Home Assistant server. """ global hass - hass = ha.HomeAssistant() + hass = get_test_home_assistant() # Set up server bootstrap.setup_component(hass, http.DOMAIN, {