mirror of
https://github.com/home-assistant/core.git
synced 2026-08-06 13:26:29 +01:00
d9442197a9
Co-authored-by: Liam Cullen <28818884+bentbrain@users.noreply.github.com> Co-authored-by: Robert Resch <robert@resch.dev>
43 lines
1.2 KiB
Python
43 lines
1.2 KiB
Python
"""Test ecovacs constants."""
|
|
|
|
from homeassistant.components.ecovacs.const import (
|
|
CONF_CONTINENT,
|
|
CONF_OVERRIDE_MQTT_URL,
|
|
CONF_OVERRIDE_REST_URL,
|
|
CONF_VERIFY_MQTT_CERTIFICATE,
|
|
)
|
|
from homeassistant.const import (
|
|
CONF_COUNTRY,
|
|
CONF_DEVICE_ID,
|
|
CONF_PASSWORD,
|
|
CONF_USERNAME,
|
|
)
|
|
|
|
VALID_ENTRY_DATA_CLOUD = {
|
|
CONF_USERNAME: "username@cloud",
|
|
CONF_PASSWORD: "password",
|
|
CONF_COUNTRY: "IT",
|
|
}
|
|
|
|
VALID_ENTRY_DATA_SELF_HOSTED = VALID_ENTRY_DATA_CLOUD | {
|
|
CONF_USERNAME: "username@self-hosted",
|
|
CONF_OVERRIDE_REST_URL: "http://localhost:8000",
|
|
CONF_OVERRIDE_MQTT_URL: "mqtt://localhost:1883",
|
|
}
|
|
|
|
VALID_ENTRY_DATA_SELF_HOSTED_WITH_VALIDATE_CERT = VALID_ENTRY_DATA_SELF_HOSTED | {
|
|
CONF_VERIFY_MQTT_CERTIFICATE: True,
|
|
}
|
|
|
|
IMPORT_DATA = VALID_ENTRY_DATA_CLOUD | {CONF_CONTINENT: "EU"}
|
|
|
|
# Cloud device IDs are random, self-hosted ones are derived from the instance name
|
|
CLOUD_DEVICE_ID = "AAAAAAAA"
|
|
SELF_HOSTED_DEVICE_ID = "HA-test_home"
|
|
|
|
# The client device ID is generated during the config flow and stored afterwards
|
|
STORED_ENTRY_DATA_CLOUD = VALID_ENTRY_DATA_CLOUD | {CONF_DEVICE_ID: CLOUD_DEVICE_ID}
|
|
STORED_ENTRY_DATA_SELF_HOSTED = VALID_ENTRY_DATA_SELF_HOSTED | {
|
|
CONF_DEVICE_ID: SELF_HOSTED_DEVICE_ID
|
|
}
|