Skip to content

ISSUE: Home Assistant Core crashes when reconfiguring or deleting Keymaster integration entry #668

Description

@cjhesse

Describe the bug

When I recently set up three locks (all Kwikset HC620 Z-Wave locks connected via zwave js), I didn't define the script entity for each one. Then, when I attempted to define that later (using the "reconfigure" option), it didn't take but eventually gave me an error at the top of the configuration window. I now believe Home Assistant Core crashed at this time, but I didn't make note of it then.

Whether or not Home Assistant Core crashed then, it's definitely crashing now anytime I try to modify or delete a Keymaster integration entry. Unfortunately, nothing related to the crash is being logged except exit code 256.

When Home Assistant Core reloads, the integration entity is unchanged. The reconfigure or delete has no lasting results.

Home Assistant version

2026.7.0 (running on HAOS 18.1 installed on Home Assistant Yellow with a CM5)

Keymaster version

v0.5.2

Home Assistant installation type

Home Assistant OS

Lock provider

zwave_js

Lock make and model

Kwikset HC620

Steps to reproduce

  1. Go to the Keymaster integration page,
  2. On any integration entry (not a device), click the three dots,
  3. Click "Delete" and then confirm.

or

  1. Go to the Keymaster integration page,
  2. On any integration entry (not a device), click the three dots,
  3. Select "Reconfigure",
  4. Modify any configuration option and then submit.

At this point Home Assistant core crashes and has to restart. HAOS and all installed apps (add-ons) appear unaffected.

Expected behavior

The integration entry can be modified or deleted.

Logs

2026-07-03 11:21:22.014 ERROR (MainThread) [homeassistant.components.template.validators] Received invalid sensor state: unavailable for entity sensor.mal_phone_next_alarm_in_primary_bedroom, expected a valid timestamp
2026-07-03 11:21:24.762 ERROR (MainThread) [frontend.js.modern.202606243] Uncaught error from Edge 149.0.0.0 on Windows 10.0
Error: Failed to execute 'define' on 'CustomElementRegistry': the name "focus-trap" has already been used with this registry
A.define (node_modules/@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.ts:180:12)
/hacsfiles/advanced-camera-card/card-294f2ffb.js:70:3686

<This is when I attempted to delete a Keymaster integration entry.>

[16:23:40] INFO: Home Assistant Core finish process exit code 256
[16:23:40] INFO: Home Assistant Core finish process received signal 9
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: warning: service s6rc-oneshot-runner is marked as essential, not stopping it
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun home-assistant (no readiness notification)
s6-rc: info: service legacy-services successfully started

Screenshots

Image

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    investigatingAttempting to find the source of the problemquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions