Skip to content

Commit c740034

Browse files
authored
add support for spaces in returned profiles (#771)
1 parent 55db37d commit c740034

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/ocpp/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ async def get_supported_features(self):
494494
_LOGGER.warning("Force Smart Charging feature profile")
495495
self._attr_supported_features |= prof.SMART
496496
for item in feature_list:
497-
item = item.strip()
497+
item = item.strip().replace(" ", "")
498498
if item == om.feature_profile_core.value:
499499
self._attr_supported_features |= prof.CORE
500500
elif item == om.feature_profile_firmware.value:

0 commit comments

Comments
 (0)