Skip to content

Commit

Permalink
Fix binary sensor status for cars with sunroof
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Two committed Jul 23, 2023
1 parent 800cda8 commit b3ac41b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/subaru/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down
4 changes: 2 additions & 2 deletions custom_components/subaru/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion requirements.test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ pylint
pytest
pytest-cov
pytest-homeassistant-custom-component
subarulink==0.7.6
subarulink==0.7.7

0 comments on commit b3ac41b

Please sign in to comment.