From ff445b69f428333893a5849cc655225fa10706ef Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 27 Jan 2022 20:19:28 +0100 Subject: [PATCH] Update Renault to 0.1.7 (#65076) * Update Renault to 0.1.7 * Adjust tests accordingly Co-authored-by: epenet --- homeassistant/components/renault/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- tests/components/renault/const.py | 11 ++++++++++- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/renault/manifest.json b/homeassistant/components/renault/manifest.json index 118848ad6dd..9442ea8160b 100644 --- a/homeassistant/components/renault/manifest.json +++ b/homeassistant/components/renault/manifest.json @@ -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" diff --git a/requirements_all.txt b/requirements_all.txt index 42736f4d48f..69f4a2de845 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -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 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 1a6139e3d0e..0100ee79044 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -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 diff --git a/tests/components/renault/const.py b/tests/components/renault/const.py index e1d7a3fc28c..91704a59b51 100644 --- a/tests/components/renault/const.py +++ b/tests/components/renault/const.py @@ -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",