Explorar o código

Include filename in missing translation message.

Sometimes you can't tell from the name of the entity which device it came from.
Jason Rumney %!s(int64=4) %!d(string=hai) anos
pai
achega
479018d2f0
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      tests/test_translations.py

+ 3 - 1
tests/test_translations.py

@@ -62,7 +62,9 @@ def test_config_and_options_match(translations):
 def subtest_entity_covered(entity):
     strings = get_english()
     TestCase().assertIn(
-        entity.config_id, strings, f"{entity.config_id} is missing a translation"
+        entity.config_id,
+        strings,
+        f"{entity._device.config}: {entity.config_id} is missing a translation",
     )