4
0
Эх сурвалжийг харах

tests (untranslated_entities): surface the errors as errors again

It seems github is no longer surfacing warnings even when marked with code location.
Jason Rumney 2 долоо хоног өмнө
parent
commit
18c18304cb

+ 1 - 1
util/untranslated_entities.py

@@ -28,7 +28,7 @@ def main() -> int:
             slug = slugify(entity.name)
             slug = slugify(entity.name)
             if slug in translations:
             if slug in translations:
                 print(
                 print(
-                    f"::warning file=custom_components/tuya_local/devices/{config},line={entity._config.__line__}:: Entity can use translation_key: {slug}"
+                    f"::error file=custom_components/tuya_local/devices/{config},line={entity._config.__line__}:: Entity can use translation_key: {slug}"
                 )
                 )
                 detected += 1
                 detected += 1
     return detected
     return detected