mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Convert config.components to a set (#5824)
This commit is contained in:
committed by
Johann Kellerman
parent
f3b9fa2f41
commit
c54517de90
@@ -213,7 +213,7 @@ def mock_state_change_event(hass, new_state, old_state=None):
|
||||
def mock_http_component(hass):
|
||||
"""Mock the HTTP component."""
|
||||
hass.http = MagicMock()
|
||||
hass.config.components.append('http')
|
||||
hass.config.components.add('http')
|
||||
hass.http.views = {}
|
||||
|
||||
def mock_register_view(view):
|
||||
|
||||
Reference in New Issue
Block a user