Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter committed Jun 28, 2024
1 parent 72c3cfd commit 5614e18
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_local.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from chargeamps.local import ChargeAmpsLocalClient, LocalChargePoint

SETTINGS_AURA = "101,1,1,0,160,4,1,1,0,160,4,100"
SETTINGS_HALO = "1,1,1,0,0,160,0,4"


def test_local():
aura = LocalChargePoint.from_url("ws://127.0.0.1:8001", pin="12345678")
halo = LocalChargePoint.from_url("ws://127.0.0.1:8002", pin="12345678")
client = ChargeAmpsLocalClient(chargepoints=[aura, halo])

client.chargepoints[0].update_settings(SETTINGS_AURA)
client.chargepoints[1].update_settings(SETTINGS_HALO)

0 comments on commit 5614e18

Please sign in to comment.