Skip to content

Commit

Permalink
Fix via device identifier (#1465)
Browse files Browse the repository at this point in the history
  • Loading branch information
drc38 authored Jan 5, 2025
1 parent d7d71a9 commit 88b0d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/ocpp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
identifiers={(DOMAIN, entry.data.get(CONF_CPID, DEFAULT_CPID))},
name=entry.data.get(CONF_CPID, DEFAULT_CPID),
model="Unknown",
via_device=((DOMAIN), central_sys.id),
via_device=(DOMAIN, entry.data.get(CONF_CSID, DEFAULT_CSID)),
)

hass.data[DOMAIN][entry.entry_id] = central_sys
Expand Down

0 comments on commit 88b0d23

Please # to comment.