Fix pep257 bt home hub 5 test

This commit is contained in:
Paulus Schoutsen 2016-06-18 08:20:14 -07:00
parent 28d86207e1
commit 29343ad651

View File

@ -9,6 +9,7 @@ patch_file = 'homeassistant.components.device_tracker.bt_home_hub_5'
def _get_homehub_data(url): def _get_homehub_data(url):
"""Return mock homehub data."""
return ''' return '''
[ [
{ {
@ -42,7 +43,6 @@ class TestBTHomeHub5DeviceTracker(unittest.TestCase):
@patch('{}._get_homehub_data'.format(patch_file), new=_get_homehub_data) @patch('{}._get_homehub_data'.format(patch_file), new=_get_homehub_data)
def test_config_minimal(self): def test_config_minimal(self):
"""Test the setup with minimal configuration.""" """Test the setup with minimal configuration."""
config = { config = {
'device_tracker': { 'device_tracker': {
CONF_HOST: 'foo' CONF_HOST: 'foo'