Skip to content
Merged
Changes from all 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
2 changes: 1 addition & 1 deletion custom_components/ocpp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ async def async_migrate_entry(hass, config_entry: ConfigEntry):
csid_data.update({key: old_data.get(key, value)})

new_data = csid_data
cp_id = hass.states.get(f"sensor.{cpid_data[CONF_CPID]}_id")
cp_id = hass.states.get(f"sensor.{cpid_data[CONF_CPID].lower()}_id")
if cp_id is None:
_LOGGER.warning(
"Could not find charger id during migration, try a clean install"
Expand Down
Loading