Skip to content

Commit

Permalink
Test for non-zero voltage average (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
drc38 authored Dec 16, 2021
1 parent 99f6e10 commit 44d80f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_charge_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ async def test_services(hass, socket_enabled):
1305570 / 1000
)
assert int(cs.get_metric("test_cpid", "Current.Import")) == int(20)
assert int(cs.get_metric("test_cpid", "Voltage")) == int(228)
assert cs.get_unit("test_cpid", "Energy.Active.Import.Register") == "kWh"
await asyncio.sleep(1)
# test ocpp messages sent from cms to charger, through HA switches/services
Expand Down Expand Up @@ -485,15 +486,15 @@ async def send_meter_data(self):
"phase": "L1-N",
},
{
"value": "227.000",
"value": "228.000",
"context": "Sample.Periodic",
"measurand": "Voltage",
"location": "Outlet",
"unit": "V",
"phase": "L2-N",
},
{
"value": "229.300",
"value": "0.000",
"context": "Sample.Periodic",
"measurand": "Voltage",
"location": "Outlet",
Expand Down

0 comments on commit 44d80f8

Please sign in to comment.