Skip to content

Commit

Permalink
Fix issue with use of subdirectories in attachments and photos
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerSelwyn committed Mar 12, 2023
1 parent 95947e2 commit 417eb5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/o365/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def get_ha_filepath(hass, filepath):
"""Get the file path."""
_filepath = Path(filepath)
if _filepath.parts[0] == "/" and _filepath.parts[1] == "config":
_filepath = build_config_file_path(hass, *_filepath.parts[2:])
_filepath = os.path.join(hass.config.config_dir, *_filepath.parts[2:])

if not os.path.isfile(_filepath):
if not os.path.isfile(filepath):
Expand Down

0 comments on commit 417eb5c

Please sign in to comment.