mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 02:38:10 +02:00
Replace bandit with ruff (#93200)
This commit is contained in:
@ -278,9 +278,11 @@ def basic_sanity_check(cursor: SQLiteCursor) -> bool:
|
||||
|
||||
for table in TABLES_TO_CHECK:
|
||||
if table in (TABLE_RECORDER_RUNS, TABLE_SCHEMA_CHANGES):
|
||||
cursor.execute(f"SELECT * FROM {table};") # nosec # not injection
|
||||
cursor.execute(f"SELECT * FROM {table};") # noqa: S608 # not injection
|
||||
else:
|
||||
cursor.execute(f"SELECT * FROM {table} LIMIT 1;") # nosec # not injection
|
||||
cursor.execute(
|
||||
f"SELECT * FROM {table} LIMIT 1;" # noqa: S608 # not injection
|
||||
)
|
||||
|
||||
return True
|
||||
|
||||
|
Reference in New Issue
Block a user