diff --git a/custom_components/ocpp/api.py b/custom_components/ocpp/api.py index 57479bf6..7bbdcba5 100644 --- a/custom_components/ocpp/api.py +++ b/custom_components/ocpp/api.py @@ -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.""" diff --git a/tests/test_charge_point.py b/tests/test_charge_point.py index 082d09c7..a18340b4 100644 --- a/tests/test_charge_point.py +++ b/tests/test_charge_point.py @@ -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",