2021-07-28 21:41:11 +02:00
|
|
|
"""Constants for the Renault integration tests."""
|
2024-03-08 14:47:22 +01:00
|
|
|
|
2025-04-30 08:32:07 +02:00
|
|
|
from homeassistant.components.renault.const import CONF_KAMEREON_ACCOUNT_ID, CONF_LOCALE
|
|
|
|
|
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
2021-08-25 23:15:49 +02:00
|
|
|
|
2021-10-18 13:27:44 +02:00
|
|
|
MOCK_ACCOUNT_ID = "account_id_1"
|
|
|
|
|
|
2021-07-28 21:41:11 +02:00
|
|
|
# Mock config data to be used across multiple tests
|
|
|
|
|
MOCK_CONFIG = {
|
|
|
|
|
CONF_USERNAME: "email@test.com",
|
|
|
|
|
CONF_PASSWORD: "test",
|
2025-04-30 08:32:07 +02:00
|
|
|
CONF_KAMEREON_ACCOUNT_ID: MOCK_ACCOUNT_ID,
|
2021-07-28 21:41:11 +02:00
|
|
|
CONF_LOCALE: "fr_FR",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MOCK_VEHICLES = {
|
|
|
|
|
"zoe_40": {
|
|
|
|
|
"endpoints": {
|
|
|
|
|
"battery_status": "battery_status_charging.json",
|
|
|
|
|
"charge_mode": "charge_mode_always.json",
|
|
|
|
|
"cockpit": "cockpit_ev.json",
|
2022-02-08 22:02:45 +01:00
|
|
|
"hvac_status": "hvac_status.1.json",
|
2021-07-28 21:41:11 +02:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
"zoe_50": {
|
|
|
|
|
"endpoints": {
|
|
|
|
|
"battery_status": "battery_status_not_charging.json",
|
|
|
|
|
"charge_mode": "charge_mode_schedule.json",
|
2026-03-05 13:24:23 +01:00
|
|
|
"charging_settings": "charging_settings.json",
|
2021-07-28 21:41:11 +02:00
|
|
|
"cockpit": "cockpit_ev.json",
|
2022-02-08 22:02:45 +01:00
|
|
|
"hvac_status": "hvac_status.2.json",
|
2021-09-01 13:10:48 +02:00
|
|
|
"location": "location.json",
|
2022-02-21 20:07:43 +01:00
|
|
|
"lock_status": "lock_status.1.json",
|
2022-02-23 17:14:58 +01:00
|
|
|
"res_state": "res_state.1.json",
|
2025-10-14 16:33:43 +02:00
|
|
|
"pressure": "pressure.1.json",
|
2021-07-28 21:41:11 +02:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
"captur_phev": {
|
|
|
|
|
"endpoints": {
|
|
|
|
|
"battery_status": "battery_status_charging.json",
|
|
|
|
|
"charge_mode": "charge_mode_always.json",
|
2026-03-05 13:24:23 +01:00
|
|
|
"charging_settings": "charging_settings_always.json",
|
2021-07-28 21:41:11 +02:00
|
|
|
"cockpit": "cockpit_fuel.json",
|
2021-09-01 13:10:48 +02:00
|
|
|
"location": "location.json",
|
2022-02-21 20:07:43 +01:00
|
|
|
"lock_status": "lock_status.1.json",
|
2022-02-23 17:14:58 +01:00
|
|
|
"res_state": "res_state.1.json",
|
2021-07-28 21:41:11 +02:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
"captur_fuel": {
|
2021-09-01 13:10:48 +02:00
|
|
|
"endpoints": {
|
|
|
|
|
"cockpit": "cockpit_fuel.json",
|
|
|
|
|
"location": "location.json",
|
2022-02-21 20:07:43 +01:00
|
|
|
"lock_status": "lock_status.1.json",
|
2022-02-23 17:14:58 +01:00
|
|
|
"res_state": "res_state.1.json",
|
2021-09-01 13:10:48 +02:00
|
|
|
},
|
2021-07-28 21:41:11 +02:00
|
|
|
},
|
2025-04-28 13:31:27 -07:00
|
|
|
"twingo_3_electric": {
|
|
|
|
|
"endpoints": {
|
|
|
|
|
"battery_status": "battery_status_waiting_for_charger.json",
|
|
|
|
|
"charge_mode": "charge_mode_always.2.json",
|
2026-03-05 13:24:23 +01:00
|
|
|
"charging_settings": "charging_settings_always.json",
|
2025-04-28 13:31:27 -07:00
|
|
|
"cockpit": "cockpit_ev.json",
|
|
|
|
|
"hvac_status": "hvac_status.3.json",
|
|
|
|
|
"location": "location.json",
|
2025-10-14 16:33:43 +02:00
|
|
|
"pressure": "pressure.1.json",
|
2025-04-28 13:31:27 -07:00
|
|
|
},
|
|
|
|
|
},
|
2026-02-27 19:47:22 +01:00
|
|
|
"megane_e_tech": {
|
|
|
|
|
"endpoints": {
|
|
|
|
|
"battery_status": "battery_status_charging.json",
|
2026-03-05 13:24:23 +01:00
|
|
|
"charging_settings": "charging_settings_delayed.json",
|
2026-02-27 19:47:22 +01:00
|
|
|
"cockpit": "cockpit_ev.json",
|
|
|
|
|
"hvac_status": "hvac_status.1.json",
|
|
|
|
|
"location": "location.json",
|
|
|
|
|
},
|
|
|
|
|
},
|
2021-07-28 21:41:11 +02:00
|
|
|
}
|