mirror of
https://github.com/home-assistant/core.git
synced 2026-02-22 19:07:08 +00:00
* Create tests for sense integration * Rearrange files * Update to use snapshots * Update tests/components/sense/__init__.py Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> * Update tests/components/sense/__init__.py Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> * Update tests/components/sense/test_binary_sensor.py Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> * Update tests/components/sense/test_sensor.py Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> * Add missing imports --------- Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
40 lines
804 B
Python
40 lines
804 B
Python
"""Cosntants for the Sense integration tests."""
|
|
|
|
MOCK_CONFIG = {
|
|
"timeout": 6,
|
|
"email": "test-email",
|
|
"password": "test-password",
|
|
"access_token": "ABC",
|
|
"user_id": "123",
|
|
"monitor_id": "456",
|
|
"device_id": "789",
|
|
"refresh_token": "XYZ",
|
|
}
|
|
|
|
DEVICE_1_NAME = "Car"
|
|
DEVICE_1_ID = "abc123"
|
|
DEVICE_1_ICON = "car-electric"
|
|
DEVICE_1_POWER = 100.0
|
|
|
|
DEVICE_1_DATA = {
|
|
"name": DEVICE_1_NAME,
|
|
"id": DEVICE_1_ID,
|
|
"icon": "car",
|
|
"tags": {"DeviceListAllowed": "true"},
|
|
"w": DEVICE_1_POWER,
|
|
}
|
|
|
|
DEVICE_2_NAME = "Oven"
|
|
DEVICE_2_ID = "def456"
|
|
DEVICE_2_ICON = "stove"
|
|
DEVICE_2_POWER = 50.0
|
|
|
|
DEVICE_2_DATA = {
|
|
"name": DEVICE_2_NAME,
|
|
"id": DEVICE_2_ID,
|
|
"icon": "stove",
|
|
"tags": {"DeviceListAllowed": "true"},
|
|
"w": DEVICE_2_POWER,
|
|
}
|
|
MONITOR_ID = "12345"
|