Fix hassio panel load (#32922)
* Fix loading hassio panel * Remove blacklist
This commit is contained in:
1 parent
8348878e7e
commit
d0d9d853f2
3 files changed
+9
-31
No files matched your search
@@ -6,7 +6,6 @@ import os
|
||||
import threading
|
||||
from unittest import mock
|
||||
|
||||
from asynctest import patch
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant import setup
|
||||
@@ -536,15 +535,3 @@ async def test_setup_import_blows_up(hass):
|
||||
"homeassistant.loader.Integration.get_component", side_effect=ValueError
|
||||
):
|
||||
assert not await setup.async_setup_component(hass, "sun", {})
|
||||
|
||||
|
||||
async def test_blacklist(caplog):
|
||||
"""Test setup blacklist."""
|
||||
with patch("homeassistant.setup.BLACKLIST", {"bad_integration"}):
|
||||
assert not await setup.async_setup_component(
|
||||
mock.Mock(config=mock.Mock(components=[])), "bad_integration", {}
|
||||
)
|
||||
assert (
|
||||
"Integration bad_integration is blacklisted because it is causing issues."
|
||||
in caplog.text
|
||||
)
|
||||
Reference in new issue
Block a user