|
18 | 18 | from homeassistant.helpers.entity_platform import AddEntitiesCallback |
19 | 19 | from homeassistant.helpers.restore_state import RestoreEntity |
20 | 20 | from homeassistant.helpers.typing import StateType |
21 | | -from tesla_fleet_api.const import Scope, Seat |
| 21 | +from tesla_fleet_api.const import Scope |
22 | 22 | from teslemetry_stream import Signal |
23 | 23 | from teslemetry_stream.const import DefrostModeState, SentryModeState, DetailedChargeState |
24 | 24 |
|
@@ -69,20 +69,20 @@ class TeslemetrySwitchEntityDescription(SwitchEntityDescription): |
69 | 69 | TeslemetrySwitchEntityDescription( |
70 | 70 | key="climate_state_auto_seat_climate_left", |
71 | 71 | 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), |
73 | 73 | off_func=lambda api: api.remote_auto_seat_climate_request( |
74 | | - Seat.FRONT_LEFT, False |
| 74 | + 1, False |
75 | 75 | ), |
76 | 76 | scopes=[Scope.VEHICLE_CMDS], |
77 | 77 | ), |
78 | 78 | TeslemetrySwitchEntityDescription( |
79 | 79 | key="climate_state_auto_seat_climate_right", |
80 | 80 | streaming_key=Signal.AUTO_SEAT_CLIMATE_RIGHT, |
81 | 81 | on_func=lambda api: api.remote_auto_seat_climate_request( |
82 | | - Seat.FRONT_RIGHT, True |
| 82 | + 2, True |
83 | 83 | ), |
84 | 84 | off_func=lambda api: api.remote_auto_seat_climate_request( |
85 | | - Seat.FRONT_RIGHT, False |
| 85 | + 2, False |
86 | 86 | ), |
87 | 87 | scopes=[Scope.VEHICLE_CMDS], |
88 | 88 | ), |
|
0 commit comments