Always load Hass.io component on Hass.io (#22185)

* Always load Hass.io component on Hass.io

* Lint

* Lint
This commit is contained in:
Paulus Schoutsen authored and Paulus Schoutsen committed 2019-03-19 11:40:49 -07:00
1 parent b85189e699
commit e6ffc790f2
4 files changed
+28 -26

No files matched your search

-16
View File
@@ -1,6 +1,5 @@
"""The tests for the discovery component."""
import asyncio
import os
from unittest.mock import patch, MagicMock
import pytest
@@ -142,21 +141,6 @@ def test_discover_duplicates(hass):
SERVICE_NO_PLATFORM_COMPONENT, BASE_CONFIG)
@asyncio.coroutine
def test_load_component_hassio(hass):
"""Test load hassio component."""
def discover(netdisco):
"""Fake discovery."""
return []
with patch.dict(os.environ, {'HASSIO': "FAKE_HASSIO"}), \
patch('homeassistant.components.hassio.async_setup',
return_value=mock_coro(return_value=True)) as mock_hassio:
yield from mock_discovery(hass, discover)
assert mock_hassio.called
async def test_discover_config_flow(hass):
"""Test discovery triggering a config flow."""
discovery_info = {