Fix exception in hunterdouglas_powerview with ignored config entry (#35482)
This commit is contained in:
1 parent
a6d587b6cd
commit
87e0f04515
2 files changed
+7
-2
No files matched your search
@@ -6,7 +6,7 @@ from homeassistant import config_entries, setup
|
||||
from homeassistant.components.hunterdouglas_powerview.const import DOMAIN
|
||||
|
||||
from tests.async_mock import AsyncMock, MagicMock, patch
|
||||
from tests.common import load_fixture
|
||||
from tests.common import MockConfigEntry, load_fixture
|
||||
|
||||
|
||||
def _get_mock_powerview_userdata(userdata=None, get_resources=None):
|
||||
@@ -102,6 +102,9 @@ async def test_form_homekit(hass):
|
||||
"""Test we get the form with homekit source."""
|
||||
await setup.async_setup_component(hass, "persistent_notification", {})
|
||||
|
||||
ignored_config_entry = MockConfigEntry(domain=DOMAIN, data={}, source="ignore")
|
||||
ignored_config_entry.add_to_hass(hass)
|
||||
|
||||
mock_powerview_userdata = _get_mock_powerview_userdata()
|
||||
with patch(
|
||||
"homeassistant.components.hunterdouglas_powerview.UserData",
|
||||
|
||||
Reference in new issue
Block a user