Disable location queries
This commit is contained in:
parent
077797ac4f
commit
61630783f1
3 changed files with 9 additions and 9 deletions
|
@ -8,7 +8,6 @@ Tests bootstrap.
|
|||
import os
|
||||
import tempfile
|
||||
import unittest
|
||||
from unittest import mock
|
||||
|
||||
from homeassistant import core, bootstrap
|
||||
from homeassistant.const import (__version__, CONF_LATITUDE, CONF_LONGITUDE,
|
||||
|
@ -16,8 +15,6 @@ from homeassistant.const import (__version__, CONF_LATITUDE, CONF_LONGITUDE,
|
|||
import homeassistant.util.dt as dt_util
|
||||
from homeassistant.helpers.entity import Entity
|
||||
|
||||
from tests.common import mock_detect_location_info
|
||||
|
||||
|
||||
class TestBootstrap(unittest.TestCase):
|
||||
""" Test the bootstrap utils. """
|
||||
|
@ -35,9 +32,7 @@ class TestBootstrap(unittest.TestCase):
|
|||
fp.write('{}:\n'.format(comp).encode('utf-8'))
|
||||
fp.flush()
|
||||
|
||||
with mock.patch('homeassistant.util.location.detect_location_info',
|
||||
mock_detect_location_info):
|
||||
hass = bootstrap.from_config_file(fp.name)
|
||||
hass = bootstrap.from_config_file(fp.name)
|
||||
|
||||
components.append('group')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue