Skip to content

Commit

Permalink
Merge pull request #17 from stekker/deauthorize-command
Browse files Browse the repository at this point in the history
Deauthorize command
  • Loading branch information
martijnversluis authored Dec 11, 2024
2 parents 54acfb2 + 62d8001 commit a5dd4d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/zaptec/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ def pause_charging(charger_id) = send_command(charger_id, :StopChargingFinal)

def resume_charging(charger_id) = send_command(charger_id, :ResumeCharging)

def deauthorize_and_stop(charger_id) = send_command(charger_id, :DeauthorizeAndStop)

private

attr_reader :username, :password
Expand Down
1 change: 1 addition & 0 deletions spec/zaptec/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@
{
pause_charging: 506,
resume_charging: 507,
deauthorize_and_stop: 10001,
}.each do |operation, command_id|
describe "##{operation}" do
# rubocop:disable RSpec/NoExpectationExample
Expand Down

0 comments on commit a5dd4d0

Please sign in to comment.