HA Translations & IDs
Use when fixing names/IDs in a custom component.
Quick start
- Set
_attr_translation_keyand_attr_has_entity_name=True; keep code names minimal. - Provide names under
entity.<platform>.<translation_key>.namein translations JSON. - Keep unique_ids stable; prefer device serial/model over mutable unit_id.
- Device identifiers should not change across reloads; plan migrations if format changes.
References
- references/translations-json.md
- references/ids-and-migrations.md
Converted and distributed by TomeVault — claim your Tome and manage your conversions.