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,22 @@
"""Tests for Vanderbilt SPC component."""
from unittest.mock import AsyncMock
from homeassistant.core import HomeAssistant
from homeassistant.setup import async_setup_component
async def test_valid_device_config(hass: HomeAssistant, mock_client: AsyncMock) -> None:
"""Test valid device config."""
config = {"spc": {"api_url": "http://localhost/", "ws_url": "ws://localhost/"}}
assert await async_setup_component(hass, "spc", config) is True
async def test_invalid_device_config(
hass: HomeAssistant, mock_client: AsyncMock
) -> None:
"""Test valid device config."""
config = {"spc": {"api_url": "http://localhost/"}}
assert await async_setup_component(hass, "spc", config) is False