mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 02:38:10 +02:00
Remove unnecessary instances of dict.keys() (#42518)
This commit is contained in:
@ -407,7 +407,7 @@ class TensorFlowImageProcessor(ImageProcessingEntity):
|
||||
continue
|
||||
|
||||
# If we got here, we should include it
|
||||
if category not in matches.keys():
|
||||
if category not in matches:
|
||||
matches[category] = []
|
||||
matches[category].append({"score": float(score), "box": boxes})
|
||||
total_matches += 1
|
||||
|
Reference in New Issue
Block a user