Skip to content

Commit

Permalink
allow spaces in list of supported feature profiles (#501)
Browse files Browse the repository at this point in the history
Co-authored-by: lbbrhzn <lbbrhzn>
  • Loading branch information
lbbrhzn authored Apr 22, 2022
1 parent 9bc7644 commit 1d29b32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/ocpp/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ async def get_supported_features(self):
await self.notify_ha("No feature profiles detected, defaulting to Core")
feature_list = [om.feature_profile_core.value]
for item in feature_list:
item = item.strip()
if item == om.feature_profile_core.value:
self._attr_supported_features |= prof.CORE
elif item == om.feature_profile_firmware.value:
Expand Down

0 comments on commit 1d29b32

Please sign in to comment.