Skip to content

Commit 1a891c5

Browse files
raman325claude
andcommitted
Wrap provider constructor in try/except and update TODO comment
- Move lock instance creation inside existing exception handler so a provider __post_init__ failure skips gracefully - Update comment: Matter/Virtual provider filtering is a known issue to be fixed in a follow-up PR Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Entire-Checkpoint: 642d587af47e
1 parent d115030 commit 1a891c5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

custom_components/lock_code_manager/config_flow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,10 @@ async def _async_get_unmanaged_codes(
172172
exc_info=True,
173173
)
174174
continue
175-
# Note: some providers (Matter, Virtual) only return slots already
176-
# configured in a Lock Code Manager config entry, so unmanaged codes
177-
# on those providers will not be detected here. This reset step is
178-
# most useful for Z-Wave locks which return all occupied slots.
175+
# TODO: Matter and Virtual providers currently only return slots
176+
# managed by an LCM config entry. A follow-up PR will make them
177+
# return all occupied slots (matching Z-Wave behavior) so unmanaged
178+
# codes are detected here.
179179
managed_slots = {
180180
int(s)
181181
for entry in hass.config_entries.async_entries(DOMAIN)

0 commit comments

Comments
 (0)