mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-24 04:07:03 +01:00
Enable Ruff RET502 (#115139)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user