mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 10:18:11 +02:00
Remove unnecessary checks before calling os.makedirs (#62576)
This commit is contained in:
@ -327,8 +327,7 @@ class TensorFlowImageProcessor(ImageProcessingEntity):
|
||||
|
||||
for path in paths:
|
||||
_LOGGER.info("Saving results image to %s", path)
|
||||
if not os.path.exists(os.path.dirname(path)):
|
||||
os.makedirs(os.path.dirname(path), exist_ok=True)
|
||||
os.makedirs(os.path.dirname(path), exist_ok=True)
|
||||
img.save(path)
|
||||
|
||||
def process_image(self, image):
|
||||
|
Reference in New Issue
Block a user