Skip to content

Commit

Permalink
Hardcode Feature profiles for Morek charger
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomakava committed Jun 30, 2024
1 parent 8740b4a commit 92fd934
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion custom_components/ocpp/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,10 @@ async def get_supported_features(self):
if feature_list[0] == "":
_LOGGER.warning("No feature profiles detected, defaulting to Core")
await self.notify_ha("No feature profiles detected, defaulting to Core")
feature_list = [om.feature_profile_core.value]
feature_list = (
"Core,FirmwareManagement,LocalAuthListManagement,"
"Reservation,SmartCharging,RemoteTrigger"
).split(",")
if self.central.config.get(
CONF_FORCE_SMART_CHARGING, DEFAULT_FORCE_SMART_CHARGING
):
Expand Down

0 comments on commit 92fd934

Please sign in to comment.