Skip to content

Commit 9e831b4

Browse files
committed
Doors locked state NO
1 parent 7a58267 commit 9e831b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/carconnectivity_connectors/skoda/connector.py

+3
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,9 @@ def fetch_vehicle_status(self, vehicle: SkodaVehicle, no_cache: bool = False) ->
11401140
if vehicle_status_data['overall']['doorsLocked'] == 'YES':
11411141
vehicle.doors.lock_state._set_value(Doors.LockState.LOCKED, measured=captured_at) # pylint: disable=protected-access
11421142
vehicle.doors.open_state._set_value(Doors.OpenState.CLOSED, measured=captured_at) # pylint: disable=protected-access
1143+
elif vehicle_status_data['overall']['doorsLocked'] == 'NO':
1144+
vehicle.doors.lock_state._set_value(Doors.LockState.UNLOCKED, measured=captured_at) # pylint: disable=protected-access
1145+
vehicle.doors.open_state._set_value(Doors.OpenState.UNKNOWN, measured=captured_at) # pylint: disable=protected-access
11431146
elif vehicle_status_data['overall']['doorsLocked'] == 'OPENED':
11441147
vehicle.doors.lock_state._set_value(Doors.LockState.UNLOCKED, measured=captured_at) # pylint: disable=protected-access
11451148
vehicle.doors.open_state._set_value(Doors.OpenState.OPEN, measured=captured_at) # pylint: disable=protected-access

0 commit comments

Comments
 (0)