1
0
mirror of https://github.com/home-assistant/core.git synced 2026-07-03 20:56:06 +01:00
Files
core/tests/components/saj/__init__.py
T
2026-06-22 12:40:28 +02:00

34 lines
884 B
Python

"""Tests for the saj integration."""
from homeassistant.components.saj.const import CONNECTION_TYPES
from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_TYPE, CONF_USERNAME
from homeassistant.core import HomeAssistant
from tests.common import MockConfigEntry
MOCK_USER_INPUT_ETHERNET = {
CONF_HOST: "192.168.1.100",
CONF_TYPE: CONNECTION_TYPES[0],
}
MOCK_USER_INPUT_WIFI = {
CONF_HOST: "192.168.1.100",
CONF_TYPE: CONNECTION_TYPES[1],
CONF_USERNAME: "admin",
CONF_PASSWORD: "password",
}
MOCK_SERIAL_NUMBER = "TEST123456789"
async def setup_integration(
hass: HomeAssistant, config_entry: MockConfigEntry
) -> MockConfigEntry:
"""Set up the integration for testing."""
config_entry.add_to_hass(hass)
await hass.config_entries.async_setup(config_entry.entry_id)
await hass.async_block_till_done()
return config_entry