-
-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Add stop charge button to renault integration #88003
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
Changes from 4 commits
84e5b73
561eac0
473fc96
74d08ec
142fd14
c1252d6
3d82028
ed896fb
86aff2d
b2cc6ab
a880a3f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,5 +70,11 @@ async def async_press(self) -> None: | |
| icon="mdi:ev-station", | ||
| name="Start charge", | ||
| requires_electricity=True, | ||
| ),RenaultButtonEntityDescription( | ||
| async_press=lambda x: x.vehicle.set_charge_stop(), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have you tested this feature? Feedback on the renault-api library has been inconsistent, and the function doesn't appear to work on all vehicles (does it actually work on yours?)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The service worked on my Dacia Spring. I will test the button today.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just tested it and worked with my car. Dacia spring.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great can you please adjust tests accordingly?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we split the renault and dacia integration? For example dacia spring don't allow schedule charge? Is possible to have a base integration that is common to both and then specific for each brand?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is the same library so I think it's better to have a single integration. |
||
| key="stop_charge", | ||
| icon="mdi:ev-station", | ||
| name="Stop charge", | ||
| requires_electricity=True, | ||
| ), | ||
| ) | ||
Uh oh!
There was an error while loading. Please reload this page.