VW ID: implement api.Resurrector to start charging from sleep (#9276)
This commit is contained in:
parent
6d8f6d115e
commit
c9c341d467
1 changed files with 7 additions and 0 deletions
|
|
@ -171,3 +171,10 @@ func (v *Provider) StartCharge() error {
|
|||
func (v *Provider) StopCharge() error {
|
||||
return v.action(ActionCharge, ActionChargeStop)
|
||||
}
|
||||
|
||||
var _ api.Resurrector = (*Provider)(nil)
|
||||
|
||||
// WakeUp implements the api.Resurrector interface
|
||||
func (v *Provider) WakeUp() error {
|
||||
return v.StartCharge()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue