Skip to content

Commit 00eb82d

Browse files
committed
fix case issue with migration
1 parent 93f3076 commit 00eb82d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/ocpp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ async def async_migrate_entry(hass, config_entry: ConfigEntry):
180180
csid_data.update({key: old_data.get(key, value)})
181181

182182
new_data = csid_data
183-
cp_id = hass.states.get(f"sensor.{cpid_data[CONF_CPID]}_id")
183+
cp_id = hass.states.get(f"sensor.{cpid_data[CONF_CPID].lower()}_id")
184184
if cp_id is None:
185185
_LOGGER.warning(
186186
"Could not find charger id during migration, try a clean install"

0 commit comments

Comments
 (0)