Prechádzať zdrojové kódy

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 4 dní pred
rodič
commit
18c18304cb
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      util/untranslated_entities.py

+ 1 - 1
util/untranslated_entities.py

@@ -28,7 +28,7 @@ def main() -> int:
             slug = slugify(entity.name)
             if slug in translations:
                 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
     return detected