Commit 2d6f884
fix: guard remove_extra_js_url against missing hass.data key
frontend.remove_extra_js_url raises KeyError('frontend_extra_module_url')
when the integration was loaded via the Lovelace resource path (so
add_extra_js_url was never called and the key was never populated).
Wrap in try/except so unload is always clean regardless of which
registration path was used.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 380472f commit 2d6f884
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
353 | 356 | | |
354 | 357 | | |
355 | 358 | | |
| |||
0 commit comments