Skip to content

Commit c0b094b

Browse files
Fix error fixing orphaned battery notes (#3946)
1 parent a1c60ad commit c0b094b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

custom_components/battery_notes/coordinator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ def _link_to_source(self) -> bool: # noqa: PLR0912
308308
DOMAIN,
309309
f"missing_device_{self.subentry.subentry_id}",
310310
data={
311-
"entry_id": self.subentry.subentry_id,
311+
"entry_id": self.config_entry.entry_id,
312+
"subentry_id": self.subentry.subentry_id,
312313
"device_id": self.device_id,
313314
"source_entity_id": self.source_entity_id,
314315
},

0 commit comments

Comments
 (0)