Skip to content
This repository has been archived by the owner on Mar 19, 2023. It is now read-only.

Commit

Permalink
fix trailing / on directories
Browse files Browse the repository at this point in the history
  • Loading branch information
robmarkcole committed Jun 26, 2019
1 parent 8a614d8 commit c6f0753
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ image_processing:
ip_address: localhost
port: 5000
scan_interval: 20000
save_file_folder: /config/www/front_door
save_file_folder: /config/www/deepstack_person_images
target: person
source:
- entity_id: camera.local_file
Expand Down
5 changes: 5 additions & 0 deletions custom_components/deepstack_object/image_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import base64
import datetime
import logging
import os

import requests
import voluptuous as vol
Expand Down Expand Up @@ -100,6 +101,10 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
target = config.get(CONF_TARGET)
save_file_folder = config.get(CONF_SAVE_FILE_FOLDER)

if save_file_folder:
save_file_folder = os.path.join(
save_file_folder, '') # If no trailing / add it

entities = []
for camera in config[CONF_SOURCE]:
object_entity = ObjectClassifyEntity(
Expand Down

0 comments on commit c6f0753

Please sign in to comment.