init home-assistant

This commit is contained in:
2026-11-19 15:15:32 -05:00
parent 2e81d9d300
commit feec6ef9fb
19230 changed files with 3335526 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
"""Test squeezebox initialization."""
from unittest.mock import patch
from homeassistant.core import HomeAssistant
from tests.common import MockConfigEntry
async def test_init_api_fail(
hass: HomeAssistant,
config_entry: MockConfigEntry,
) -> None:
"""Test init fail due to API fail."""
# Setup component to fail...
with (
patch(
"homeassistant.components.squeezebox.Server.async_query",
return_value=False,
),
):
assert not await hass.config_entries.async_setup(config_entry.entry_id)