Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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