We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88cafb7 commit ee2f840Copy full SHA for ee2f840
custom_components/ocpp/ocppv16.py
@@ -392,7 +392,10 @@ async def set_availability(self, state: bool = True):
392
393
req = call.ChangeAvailability(connector_id=0, type=typ)
394
resp = await self.call(req)
395
- if resp.status == AvailabilityStatus.accepted:
+ if resp.status in [
396
+ AvailabilityStatus.accepted,
397
+ AvailabilityStatus.scheduled,
398
+ ]:
399
return True
400
else:
401
_LOGGER.warning("Failed with response: %s", resp.status)
0 commit comments