From b3ac41b0c613e27799a9b0ef0eb82dc6f9938cb4 Mon Sep 17 00:00:00 2001 From: G-Two <7310260+G-Two@users.noreply.github.com> Date: Sat, 22 Jul 2023 21:16:01 -0400 Subject: [PATCH] Fix binary sensor status for cars with sunroof --- custom_components/subaru/binary_sensor.py | 2 +- custom_components/subaru/manifest.json | 4 ++-- requirements.test.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/custom_components/subaru/binary_sensor.py b/custom_components/subaru/binary_sensor.py index 5561f60..63f5324 100644 --- a/custom_components/subaru/binary_sensor.py +++ b/custom_components/subaru/binary_sensor.py @@ -186,7 +186,7 @@ def create_vehicle_binary_sensors( if vehicle_info[VEHICLE_API_GEN] in [API_GEN_2, API_GEN_3]: binary_sensors_to_add.extend(API_GEN_2_BINARY_SENSORS) - if vehicle_info[VEHICLE_HAS_POWER_WINDOWS]: + if vehicle_info[VEHICLE_HAS_POWER_WINDOWS] or vehicle_info[VEHICLE_HAS_SUNROOF]: binary_sensors_to_add.extend(POWER_WINDOW_BINARY_SENSORS) if vehicle_info[VEHICLE_HAS_SUNROOF]: diff --git a/custom_components/subaru/manifest.json b/custom_components/subaru/manifest.json index 482f404..c508c6d 100644 --- a/custom_components/subaru/manifest.json +++ b/custom_components/subaru/manifest.json @@ -6,6 +6,6 @@ "documentation": "https://github.com/G-Two/homeassistant-subaru", "iot_class": "cloud_polling", "issue_tracker": "https://github.com/G-Two/homeassistant-subaru/issues", - "requirements": ["subarulink==0.7.6"], - "version": "0.7.9" + "requirements": ["subarulink==0.7.7"], + "version": "0.7.10" } diff --git a/requirements.test.txt b/requirements.test.txt index aaf7a98..aec7d15 100644 --- a/requirements.test.txt +++ b/requirements.test.txt @@ -2,4 +2,4 @@ pylint pytest pytest-cov pytest-homeassistant-custom-component -subarulink==0.7.6 +subarulink==0.7.7