Add stop charge button to renault integration#88003
Conversation
|
It seems you haven't yet signed a CLA. Please do so here. Once you do that we will be able to review and accept this pull request. Thanks! |
|
Hey there @epenet, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
| requires_electricity=True, | ||
| ), | ||
| RenaultButtonEntityDescription( | ||
| async_press=lambda x: x.vehicle.set_charge_stop(), |
There was a problem hiding this comment.
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?)
There was a problem hiding this comment.
The service worked on my Dacia Spring. I will test the button today.
There was a problem hiding this comment.
Just tested it and worked with my car.
Dacia spring.
There was a problem hiding this comment.
Great can you please adjust tests accordingly?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
It is the same library so I think it's better to have a single integration.
Even some Renault vehicles don't support schedule charge...
It is better to adjust documentation for this
epenet
left a comment
There was a problem hiding this comment.
I added the tests, and fixed the CI.
Please open a documentation PR, and we are good to go.
Just check the current documentation, and it has 0 mentions of buttons. what should I add? |
I'm not sure - but definitely needs a section for the available buttons and mention that they do not work for all vehicles. |
|
I have re-triggered the workflow. Please do not merge |
|
I repeat myself:
|
Breaking change
Proposed change
Add button to stop charging the car
Type of change
Additional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.To help with the load of incoming pull requests: