@@ -205,22 +205,62 @@ async def set_bioweapon_defense_mode(
205205 )
206206
207207
208- async def set_climate_keeper_mode (
209- session : aiohttp .ClientSession ,
210- vin : str ,
211- api_key : str ,
212- mode : ClimateKeeperMode ,
213- retry_duration : int = 40 ,
214- wait_for_completion : bool = True ,
215- ) -> Dict [str , Any ]:
216- return await tessieRequest (
217- session ,
218- "GET" ,
219- f"/{ vin } /command/set_climate_keeper_mode" ,
220- api_key ,
221- params = {
222- "mode" : mode ,
223- "retry_duration" : retry_duration ,
224- "wait_for_completion" : str (wait_for_completion ).lower (),
225- },
208+ async def set_climate_keeper_mode (
209+ session : aiohttp .ClientSession ,
210+ vin : str ,
211+ api_key : str ,
212+ mode : ClimateKeeperMode ,
213+ retry_duration : int = 40 ,
214+ wait_for_completion : bool = True ,
215+ ) -> Dict [str , Any ]:
216+ return await tessieRequest (
217+ session ,
218+ "GET" ,
219+ f"/{ vin } /command/set_climate_keeper_mode" ,
220+ api_key ,
221+ params = {
222+ "mode" : mode ,
223+ "retry_duration" : retry_duration ,
224+ "wait_for_completion" : str (wait_for_completion ).lower (),
225+ },
226+ )
227+
228+
229+ async def start_cabin_overheat_protection (
230+ session : aiohttp .ClientSession ,
231+ vin : str ,
232+ api_key : str ,
233+ retry_duration : int = 40 ,
234+ wait_for_completion : bool = True ,
235+ ) -> Dict [str , Any ]:
236+ return await tessieRequest (
237+ session ,
238+ "GET" ,
239+ f"/{ vin } /command/set_cabin_overheat_protection" ,
240+ api_key ,
241+ params = {
242+ "on" : "true" ,
243+ "retry_duration" : retry_duration ,
244+ "wait_for_completion" : str (wait_for_completion ).lower (),
245+ },
246+ )
247+
248+
249+ async def stop_cabin_overheat_protection (
250+ session : aiohttp .ClientSession ,
251+ vin : str ,
252+ api_key : str ,
253+ retry_duration : int = 40 ,
254+ wait_for_completion : bool = True ,
255+ ) -> Dict [str , Any ]:
256+ return await tessieRequest (
257+ session ,
258+ "GET" ,
259+ f"/{ vin } /command/set_cabin_overheat_protection" ,
260+ api_key ,
261+ params = {
262+ "on" : "false" ,
263+ "retry_duration" : retry_duration ,
264+ "wait_for_completion" : str (wait_for_completion ).lower (),
265+ },
226266 )
0 commit comments