Skip to content

Commit

Permalink
Added PlugState 3, that is coming with renault-api 0.2.7, it fixes ho…
Browse files Browse the repository at this point in the history
  • Loading branch information
tmenguy committed Sep 6, 2024
1 parent fce42ad commit 85d9872
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
24 changes: 21 additions & 3 deletions tests/components/renault/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,13 @@
ATTR_DEVICE_CLASS: SensorDeviceClass.ENUM,
ATTR_ENTITY_ID: "sensor.reg_number_plug_state",
ATTR_ICON: "mdi:power-plug",
ATTR_OPTIONS: ["unplugged", "plugged", "plug_error", "plug_unknown"],
ATTR_OPTIONS: [
"unplugged",
"plugged",
"plugged_waiting_for_charge",
"plug_error",
"plug_unknown",
],
ATTR_STATE: "plugged",
ATTR_UNIQUE_ID: "vf1aaaaa555777999_plug_state",
},
Expand Down Expand Up @@ -487,7 +493,13 @@
ATTR_DEVICE_CLASS: SensorDeviceClass.ENUM,
ATTR_ENTITY_ID: "sensor.reg_number_plug_state",
ATTR_ICON: "mdi:power-plug-off",
ATTR_OPTIONS: ["unplugged", "plugged", "plug_error", "plug_unknown"],
ATTR_OPTIONS: [
"unplugged",
"plugged",
"plugged_waiting_for_charge",
"plug_error",
"plug_unknown",
],
ATTR_STATE: "unplugged",
ATTR_UNIQUE_ID: "vf1aaaaa555777999_plug_state",
},
Expand Down Expand Up @@ -725,7 +737,13 @@
ATTR_DEVICE_CLASS: SensorDeviceClass.ENUM,
ATTR_ENTITY_ID: "sensor.reg_number_plug_state",
ATTR_ICON: "mdi:power-plug",
ATTR_OPTIONS: ["unplugged", "plugged", "plug_error", "plug_unknown"],
ATTR_OPTIONS: [
"unplugged",
"plugged",
"plugged_waiting_for_charge",
"plug_error",
"plug_unknown",
],
ATTR_STATE: "plugged",
ATTR_UNIQUE_ID: "vf1aaaaa555777123_plug_state",
},
Expand Down
12 changes: 12 additions & 0 deletions tests/components/renault/snapshots/test_sensor.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@
'options': list([
'unplugged',
'plugged',
'plugged_waiting_for_charge',
'plug_error',
'plug_unknown',
]),
Expand Down Expand Up @@ -921,6 +922,7 @@
'options': list([
'unplugged',
'plugged',
'plugged_waiting_for_charge',
'plug_error',
'plug_unknown',
]),
Expand Down Expand Up @@ -1249,6 +1251,7 @@
'options': list([
'unplugged',
'plugged',
'plugged_waiting_for_charge',
'plug_error',
'plug_unknown',
]),
Expand Down Expand Up @@ -1674,6 +1677,7 @@
'options': list([
'unplugged',
'plugged',
'plugged_waiting_for_charge',
'plug_error',
'plug_unknown',
]),
Expand Down Expand Up @@ -2000,6 +2004,7 @@
'options': list([
'unplugged',
'plugged',
'plugged_waiting_for_charge',
'plug_error',
'plug_unknown',
]),
Expand Down Expand Up @@ -2456,6 +2461,7 @@
'options': list([
'unplugged',
'plugged',
'plugged_waiting_for_charge',
'plug_error',
'plug_unknown',
]),
Expand Down Expand Up @@ -3104,6 +3110,7 @@
'options': list([
'unplugged',
'plugged',
'plugged_waiting_for_charge',
'plug_error',
'plug_unknown',
]),
Expand Down Expand Up @@ -3531,6 +3538,7 @@
'options': list([
'unplugged',
'plugged',
'plugged_waiting_for_charge',
'plug_error',
'plug_unknown',
]),
Expand Down Expand Up @@ -3859,6 +3867,7 @@
'options': list([
'unplugged',
'plugged',
'plugged_waiting_for_charge',
'plug_error',
'plug_unknown',
]),
Expand Down Expand Up @@ -4284,6 +4293,7 @@
'options': list([
'unplugged',
'plugged',
'plugged_waiting_for_charge',
'plug_error',
'plug_unknown',
]),
Expand Down Expand Up @@ -4610,6 +4620,7 @@
'options': list([
'unplugged',
'plugged',
'plugged_waiting_for_charge',
'plug_error',
'plug_unknown',
]),
Expand Down Expand Up @@ -5066,6 +5077,7 @@
'options': list([
'unplugged',
'plugged',
'plugged_waiting_for_charge',
'plug_error',
'plug_unknown',
]),
Expand Down

0 comments on commit 85d9872

Please sign in to comment.