Commit 7a47902
fix: derive entity_id for helpers when not in WebSocket result
Some helper types (e.g., input_boolean) don't return entity_id in
the WebSocket create result. Derive it from helper_type + result id
so that wait_for_entity_registered and category application work.
Test updated to handle the same fallback.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c2fb25f commit 7a47902
2 files changed
Lines changed: 9 additions & 2 deletions
File tree
- src/ha_mcp/tools
- tests/src/e2e/workflows/categories
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
642 | 645 | | |
643 | 646 | | |
644 | 647 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| 369 | + | |
369 | 370 | | |
370 | | - | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
371 | 376 | | |
372 | 377 | | |
373 | 378 | | |
374 | | - | |
375 | 379 | | |
376 | 380 | | |
377 | 381 | | |
| |||
0 commit comments