Tons of fixes - WIP
This commit is contained in:
parent
768c98d359
commit
15e329a588
22 changed files with 938 additions and 1604 deletions
|
@ -120,7 +120,7 @@ def mock_state_change_event(hass, new_state, old_state=None):
|
|||
|
||||
def mock_http_component(hass):
|
||||
"""Mock the HTTP component."""
|
||||
hass.http = MockHTTP()
|
||||
hass.wsgi = mock.MagicMock()
|
||||
hass.config.components.append('http')
|
||||
|
||||
|
||||
|
@ -135,14 +135,6 @@ def mock_mqtt_component(hass, mock_mqtt):
|
|||
return mock_mqtt
|
||||
|
||||
|
||||
class MockHTTP(object):
|
||||
"""Mock the HTTP module."""
|
||||
|
||||
def register_path(self, method, url, callback, require_auth=True):
|
||||
"""Register a path."""
|
||||
pass
|
||||
|
||||
|
||||
class MockModule(object):
|
||||
"""Representation of a fake module."""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue