Skip to content
Merged
Changes from 4 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
9 changes: 8 additions & 1 deletion custom_components/ocpp/ocppv16.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,14 @@ async def trigger_status_notification(self):
resp = await self.call(req)
if resp.status != TriggerMessageStatus.accepted:
_LOGGER.warning("Failed with response: %s", resp.status)
return_value = False
_LOGGER.warning(
"Forcing number of connectors to %d, charger returned %d",
id - 1,
nof_connectors,
)
self._metrics[cdet.connectors.value].value = max(1, id - 1)
return_value = id > 1
break
return return_value

async def clear_profile(self):
Expand Down