Przeglądaj źródła

Include filename in missing translation message.

Sometimes you can't tell from the name of the entity which device it came from.
Jason Rumney 3 lat temu
rodzic
commit
479018d2f0
1 zmienionych plików z 3 dodań i 1 usunięć
  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",
     )