Update Renault to 0.1.7 (#65076)

* Update Renault to 0.1.7

* Adjust tests accordingly

Co-authored-by: epenet <epenet@users.noreply.github.com>
pull/65442/head
epenet 2022-01-27 20:19:28 +01:00 committed by Paulus Schoutsen
parent 7e2d04ca77
commit ff445b69f4
4 changed files with 13 additions and 4 deletions

View File

@ -4,7 +4,7 @@
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/renault",
"requirements": [
"renault-api==0.1.4"
"renault-api==0.1.7"
],
"codeowners": [
"@epenet"

View File

@ -2087,7 +2087,7 @@ raspyrfm-client==1.2.8
regenmaschine==2022.01.0
# homeassistant.components.renault
renault-api==0.1.4
renault-api==0.1.7
# homeassistant.components.python_script
restrictedpython==5.2

View File

@ -1282,7 +1282,7 @@ rachiopy==1.0.3
regenmaschine==2022.01.0
# homeassistant.components.renault
renault-api==0.1.4
renault-api==0.1.7
# homeassistant.components.python_script
restrictedpython==5.2

View File

@ -228,7 +228,7 @@ MOCK_VEHICLES = {
},
"endpoints_available": [
True, # cockpit
False, # hvac-status
True, # hvac-status
True, # location
True, # battery-status
True, # charge-mode
@ -237,6 +237,7 @@ MOCK_VEHICLES = {
"battery_status": "battery_status_not_charging.json",
"charge_mode": "charge_mode_schedule.json",
"cockpit": "cockpit_ev.json",
"hvac_status": "hvac_status.json",
"location": "location.json",
},
Platform.BINARY_SENSOR: [
@ -356,6 +357,14 @@ MOCK_VEHICLES = {
ATTR_UNIQUE_ID: "vf1aaaaa555777999_mileage",
ATTR_UNIT_OF_MEASUREMENT: LENGTH_KILOMETERS,
},
{
ATTR_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
ATTR_ENTITY_ID: "sensor.reg_number_outside_temperature",
ATTR_STATE: "8.0",
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
ATTR_UNIQUE_ID: "vf1aaaaa555777999_outside_temperature",
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
},
{
ATTR_DEVICE_CLASS: DEVICE_CLASS_PLUG_STATE,
ATTR_ENTITY_ID: "sensor.reg_number_plug_state",