Update netdisco (#7563)
parent
ed0ec613c3
commit
f0ce6c8210
|
@ -21,7 +21,7 @@ from homeassistant.helpers.event import async_track_point_in_utc_time
|
|||
from homeassistant.helpers.discovery import async_load_platform, async_discover
|
||||
import homeassistant.util.dt as dt_util
|
||||
|
||||
REQUIREMENTS = ['netdisco==1.0.0rc3']
|
||||
REQUIREMENTS = ['netdisco==1.0.0']
|
||||
|
||||
DOMAIN = 'discovery'
|
||||
|
||||
|
|
|
@ -385,7 +385,7 @@ mutagen==1.37.0
|
|||
myusps==1.0.5
|
||||
|
||||
# homeassistant.components.discovery
|
||||
netdisco==1.0.0rc3
|
||||
netdisco==1.0.0
|
||||
|
||||
# homeassistant.components.sensor.neurio_energy
|
||||
neurio==0.3.1
|
||||
|
|
|
@ -78,9 +78,6 @@ mficlient==0.3.0
|
|||
# homeassistant.components.tts
|
||||
mutagen==1.37.0
|
||||
|
||||
# homeassistant.components.discovery
|
||||
netdisco==1.0.0rc3
|
||||
|
||||
# homeassistant.components.mqtt
|
||||
paho-mqtt==1.2.3
|
||||
|
||||
|
|
|
@ -50,7 +50,6 @@ TEST_REQUIREMENTS = (
|
|||
'pilight',
|
||||
'fuzzywuzzy',
|
||||
'datadog',
|
||||
'netdisco',
|
||||
'rflink',
|
||||
'ring_doorbell',
|
||||
'sleepyq',
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
"""The tests for the discovery component."""
|
||||
import asyncio
|
||||
import os
|
||||
from unittest.mock import patch, MagicMock
|
||||
|
||||
from unittest.mock import patch
|
||||
import pytest
|
||||
|
||||
from homeassistant.bootstrap import async_setup_component
|
||||
from homeassistant.components import discovery
|
||||
|
@ -34,6 +35,15 @@ IGNORE_CONFIG = {
|
|||
}
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def netdisco_mock():
|
||||
"""Mock netdisco."""
|
||||
with patch.dict('sys.modules', {
|
||||
'netdisco.discovery': MagicMock(),
|
||||
}):
|
||||
yield
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
def mock_discovery(hass, discoveries, config=BASE_CONFIG):
|
||||
"""Helper to mock discoveries."""
|
||||
|
|
Loading…
Reference in New Issue