core: mistake translation Error doing job: Task exception was never retrieved

The problem

after launch, errors occur in the logs, there is no text and system names instead of translations, the Russian language is selected in the settings Снимок экрана 2024-02-08 в 00 18 20 Снимок экрана 2024-02-08 в 00 17 41

What version of Home Assistant Core has the issue?

2024.2.0

What was the last working version of Home Assistant Core?

2024.1.6

What type of installation are you running?

Home Assistant OS

Integration causing the issue

translation

Link to integration documentation on our website

https://developers.home-assistant.io/docs/translations/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant
Source: helpers/translation.py:276
First occurred: 00:11:05 (62 occurrences)
Last logged: 00:11:24

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/custom_templates/__init__.py", line 275, in load_translations
    await load_translations_to_cache(hass, language)
  File "/config/custom_components/custom_templates/__init__.py", line 239, in load_translations_to_cache
    await cache.async_fetch(language, "entity", components_entities)
  File "/usr/src/homeassistant/homeassistant/helpers/translation.py", line 219, in async_fetch
    await self._async_load(language, components_to_load)
  File "/usr/src/homeassistant/homeassistant/helpers/translation.py", line 257, in _async_load
    self._build_category_cache(language, components, translation_strings)
  File "/usr/src/homeassistant/homeassistant/helpers/translation.py", line 333, in _build_category_cache
    resources_flatten = self._validate_placeholders(
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/translation.py", line 276, in _validate_placeholders
    tuples = list(string.Formatter().parse(value))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: unexpected '{' in field name

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 3
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Logger: homeassistant.helpers.translation
Source: helpers/translation.py:279
First occurred: 15:47:16 (1 occurrences)
Last logged: 15:47:16

Error while parsing localized (ru) string component.spook.issues.script_unknown_entity_references.description

it looks like it’s a spook: image

config/custom_components/custom_templates/__init__.py

This is a custom component, which is not maintained by the HA core project. Please report your issue to the maintainer or in the source repository of this custom component. Thx 👍