Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_preconditioning_max #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

set_preconditioning_max #35

wants to merge 1 commit into from

Conversation

NicoNet
Copy link

@NicoNet NicoNet commented Jan 19, 2021

Added commands for turning off/on preconditioning with Max Defrost

Added commands for turning off/on preconditioning with Max Defrost
@@ -16,6 +16,12 @@ async def start_climate(self):
async def stop_climate(self):
return await self._vehicle._command("auto_conditioning_stop")

async def start_preconditioning_max(self):
return await self._api_client.post('vehicles/{}/command/set_preconditioning_max'.format(self._vehicle_id),{'on':True})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason this isn't implemented the same as the surrounding code?
i.e. self._vehicle._command("set_preconditioning_max", {"on": True})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants