init home-assistant
This commit is contained in:
21
home-assistant/tests/components/switchbot_cloud/__init__.py
Normal file
21
home-assistant/tests/components/switchbot_cloud/__init__.py
Normal file
@@ -0,0 +1,21 @@
|
||||
"""Tests for the SwitchBot Cloud integration."""
|
||||
|
||||
from homeassistant.components.switchbot_cloud.const import DOMAIN
|
||||
from homeassistant.const import CONF_API_KEY, CONF_API_TOKEN
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
|
||||
def configure_integration(hass: HomeAssistant) -> MockConfigEntry:
|
||||
"""Configure the integration."""
|
||||
config = {
|
||||
CONF_API_TOKEN: "test-token",
|
||||
CONF_API_KEY: "test-api-key",
|
||||
}
|
||||
entry = MockConfigEntry(
|
||||
domain=DOMAIN, data=config, entry_id="123456", unique_id="123456"
|
||||
)
|
||||
entry.add_to_hass(hass)
|
||||
|
||||
return entry
|
||||
Reference in New Issue
Block a user