Skip to content

Commit 72dd0dd

Browse files
committed
Fix auto seat positions
1 parent 30e992e commit 72dd0dd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

custom_components/teslemetry/switch.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from homeassistant.helpers.entity_platform import AddEntitiesCallback
1919
from homeassistant.helpers.restore_state import RestoreEntity
2020
from homeassistant.helpers.typing import StateType
21-
from tesla_fleet_api.const import Scope, Seat
21+
from tesla_fleet_api.const import Scope
2222
from teslemetry_stream import Signal
2323
from teslemetry_stream.const import DefrostModeState, SentryModeState, DetailedChargeState
2424

@@ -69,20 +69,20 @@ class TeslemetrySwitchEntityDescription(SwitchEntityDescription):
6969
TeslemetrySwitchEntityDescription(
7070
key="climate_state_auto_seat_climate_left",
7171
streaming_key=Signal.AUTO_SEAT_CLIMATE_LEFT,
72-
on_func=lambda api: api.remote_auto_seat_climate_request(Seat.FRONT_LEFT, True),
72+
on_func=lambda api: api.remote_auto_seat_climate_request(1, True),
7373
off_func=lambda api: api.remote_auto_seat_climate_request(
74-
Seat.FRONT_LEFT, False
74+
1, False
7575
),
7676
scopes=[Scope.VEHICLE_CMDS],
7777
),
7878
TeslemetrySwitchEntityDescription(
7979
key="climate_state_auto_seat_climate_right",
8080
streaming_key=Signal.AUTO_SEAT_CLIMATE_RIGHT,
8181
on_func=lambda api: api.remote_auto_seat_climate_request(
82-
Seat.FRONT_RIGHT, True
82+
2, True
8383
),
8484
off_func=lambda api: api.remote_auto_seat_climate_request(
85-
Seat.FRONT_RIGHT, False
85+
2, False
8686
),
8787
scopes=[Scope.VEHICLE_CMDS],
8888
),

0 commit comments

Comments
 (0)