mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 17:57:55 +00:00

* add placeholder support to entity name translation * add negativ tests * make property also available via description * fix doc string in translation_placeholders() * fix detection of placeholder * validate placeholders for localized strings * add test * Cache translation_placeholders property * Make translation_placeholders uncondotionally return dict * Fall back to unsubstituted name in case of mismatch * Only replace failing translations with English * Update snapshots * Blow up on non stable releases * Fix test * Update entity.py --------- Co-authored-by: Erik <erik@montnemery.com> Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>