Enable Ruff RET502 (#115139)

This commit is contained in:
Sid
2024-05-21 22:19:33 +02:00
committed by GitHub
parent ff2b851683
commit c2b3bf3fb9
34 changed files with 87 additions and 86 deletions

View File

@@ -200,7 +200,7 @@ def execute(hass, filename, source, data=None, return_response=False):
_LOGGER.error(
"Error loading script %s: %s", filename, ", ".join(compiled.errors)
)
return
return None
if compiled.warnings:
_LOGGER.warning(