Skip to content

Commit

Permalink
fix nonetype error, add test for energy reset (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
drc38 authored Aug 27, 2021
1 parent 11a2fdc commit 554c020
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/ocpp/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def get_supported_features(self, cp_id: str):
"""Return what profiles the charger supports."""
if cp_id in self.charge_points:
return self.charge_points[cp_id].supported_features
return None
return 0

async def set_max_charge_rate_amps(self, cp_id: str, value: float):
"""Set the maximum charge rate in amps."""
Expand Down
2 changes: 1 addition & 1 deletion tests/test_charge_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ async def send_meter_data(self):
"timestamp": "2021-06-21T16:15:09Z",
"sampledValue": [
{
"value": "1305570.000",
"value": "1305590.000",
"context": "Sample.Periodic",
"measurand": "Energy.Active.Import.Register",
"location": "Outlet",
Expand Down

0 comments on commit 554c020

Please sign in to comment.