Skip to content

Commit ee2f840

Browse files
committed
AvailabilityStatus scheduled is expected when charger transaction is in progress
1 parent 88cafb7 commit ee2f840

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

custom_components/ocpp/ocppv16.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,10 @@ async def set_availability(self, state: bool = True):
392392

393393
req = call.ChangeAvailability(connector_id=0, type=typ)
394394
resp = await self.call(req)
395-
if resp.status == AvailabilityStatus.accepted:
395+
if resp.status in [
396+
AvailabilityStatus.accepted,
397+
AvailabilityStatus.scheduled,
398+
]:
396399
return True
397400
else:
398401
_LOGGER.warning("Failed with response: %s", resp.status)

0 commit comments

Comments
 (0)