Commit 16957b7
refactor(entity): drop explicit entity_id override in complex naming (#448)
Complex naming was setting self.entity_id to force an installation-id-
prefixed entity_id, which tomer-w noted was a historical mistake from
before proper HA entity naming patterns were established.
Since DEFAULT_SIMPLE_NAMING is True, new installations already get
clean HA-derived entity_ids via simple naming. Complex naming only
exists for backward compatibility; existing entities keep their already-
registered entity_ids regardless. Removing the explicit self.entity_id
override lets HA derive entity_ids from the entity name — the same
approach simple naming uses.
The unique_id in complex naming is unchanged, so entity identity is
fully preserved. No display_id needed.
Co-authored-by: pos-ei-don <philipp.wacker@ibf-solutions.com>1 parent 8fd9508 commit 16957b7
2 files changed
Lines changed: 5 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | 71 | | |
74 | 72 | | |
75 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
| 402 | + | |
| 403 | + | |
409 | 404 | | |
410 | 405 | | |
411 | 406 | | |
| |||
700 | 695 | | |
701 | 696 | | |
702 | 697 | | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
| 698 | + | |
711 | 699 | | |
712 | 700 | | |
713 | 701 | | |
| |||
734 | 722 | | |
735 | 723 | | |
736 | 724 | | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
| 725 | + | |
| 726 | + | |
744 | 727 | | |
745 | 728 | | |
746 | 729 | | |
| |||
0 commit comments