Add scheduled mode to renault charge mode (#115427)

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
This commit is contained in:
slyoldfox 2024-04-19 18:22:12 +02:00 committed by GitHub
parent 18d6581523
commit ebbcad17c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 31 additions and 4 deletions

View File

@ -71,6 +71,6 @@ SENSOR_TYPES: tuple[RenaultSelectEntityDescription, ...] = (
coordinator="charge_mode",
data_key="chargeMode",
translation_key="charge_mode",
options=["always", "always_charging", "schedule_mode"],
options=["always", "always_charging", "schedule_mode", "scheduled"],
),
)

View File

@ -127,7 +127,12 @@ MOCK_VEHICLES = {
{
ATTR_ENTITY_ID: "select.reg_number_charge_mode",
ATTR_ICON: "mdi:calendar-remove",
ATTR_OPTIONS: ["always", "always_charging", "schedule_mode"],
ATTR_OPTIONS: [
"always",
"always_charging",
"schedule_mode",
"scheduled",
],
ATTR_STATE: "always",
ATTR_UNIQUE_ID: "vf1aaaaa555777999_charge_mode",
},
@ -363,7 +368,12 @@ MOCK_VEHICLES = {
{
ATTR_ENTITY_ID: "select.reg_number_charge_mode",
ATTR_ICON: "mdi:calendar-clock",
ATTR_OPTIONS: ["always", "always_charging", "schedule_mode"],
ATTR_OPTIONS: [
"always",
"always_charging",
"schedule_mode",
"scheduled",
],
ATTR_STATE: "schedule_mode",
ATTR_UNIQUE_ID: "vf1aaaaa555777999_charge_mode",
},
@ -599,7 +609,12 @@ MOCK_VEHICLES = {
{
ATTR_ENTITY_ID: "select.reg_number_charge_mode",
ATTR_ICON: "mdi:calendar-remove",
ATTR_OPTIONS: ["always", "always_charging", "schedule_mode"],
ATTR_OPTIONS: [
"always",
"always_charging",
"schedule_mode",
"scheduled",
],
ATTR_STATE: "always",
ATTR_UNIQUE_ID: "vf1aaaaa555777123_charge_mode",
},

View File

@ -82,6 +82,7 @@
'always',
'always_charging',
'schedule_mode',
'scheduled',
]),
}),
'config_entry_id': <ANY>,
@ -121,6 +122,7 @@
'always',
'always_charging',
'schedule_mode',
'scheduled',
]),
}),
'context': <ANY>,
@ -175,6 +177,7 @@
'always',
'always_charging',
'schedule_mode',
'scheduled',
]),
}),
'config_entry_id': <ANY>,
@ -214,6 +217,7 @@
'always',
'always_charging',
'schedule_mode',
'scheduled',
]),
}),
'context': <ANY>,
@ -268,6 +272,7 @@
'always',
'always_charging',
'schedule_mode',
'scheduled',
]),
}),
'config_entry_id': <ANY>,
@ -307,6 +312,7 @@
'always',
'always_charging',
'schedule_mode',
'scheduled',
]),
}),
'context': <ANY>,
@ -401,6 +407,7 @@
'always',
'always_charging',
'schedule_mode',
'scheduled',
]),
}),
'config_entry_id': <ANY>,
@ -440,6 +447,7 @@
'always',
'always_charging',
'schedule_mode',
'scheduled',
]),
}),
'context': <ANY>,
@ -494,6 +502,7 @@
'always',
'always_charging',
'schedule_mode',
'scheduled',
]),
}),
'config_entry_id': <ANY>,
@ -533,6 +542,7 @@
'always',
'always_charging',
'schedule_mode',
'scheduled',
]),
}),
'context': <ANY>,
@ -587,6 +597,7 @@
'always',
'always_charging',
'schedule_mode',
'scheduled',
]),
}),
'config_entry_id': <ANY>,
@ -626,6 +637,7 @@
'always',
'always_charging',
'schedule_mode',
'scheduled',
]),
}),
'context': <ANY>,