Skip to content

Commit

Permalink
feat: Replace dots '.' in filename w/ slashes '/'
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrapan committed Jul 4, 2024
1 parent 5fc407f commit 5a50d36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/history_services/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/davidrapan/ha-history/issues",
"requirements": ["simplekml"],
"version": "0.1.2"
"version": "24.07.04"
}
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ async def export_service(call: ServiceCall) -> ServiceResponse:
if "filename" in call.data:
filename = ""
if call_filename := call.data["filename"]:
filename = call_filename
filename = call_filename.replace('.', '/')

if directory and filename and fileext:
file = hass.config.path(f'{directory}{filename}.{fileext}')
Expand Down

0 comments on commit 5a50d36

Please sign in to comment.