Skip to content

Commit

Permalink
Adjust map filename
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrMachowski committed Jun 29, 2021
1 parent 92fb5cd commit edac1b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ If you don't use Core installation ([installation types](https://www.home-assist
- In [SSH & Terminal add-on](https://github.com/hassio-addons/addon-ssh) enable protected access
- Open terminal and use the following command to copy file:
```
docker exec homeassistant bash -c "mkdir -p /config/tmp/ && cp /tmp/map_data.* /config/tmp/"
docker exec homeassistant bash -c "mkdir -p /config/tmp/ && cp /tmp/map_data* /config/tmp/"
```
- Map file will appear in `tmp` folder in your `config` folder

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_map(self, map_name, colors, drawables, texts, sizes, image_config, store
return None, False
map_stored = False
if store_response:
raw_map_file = open(f"/tmp/map_data.{self.get_map_archive_extension()}", "wb")
raw_map_file = open(f"/tmp/map_data_{self.model}.{self.get_map_archive_extension()}", "wb")
raw_map_file.write(response)
raw_map_file.close()
map_stored = True
Expand Down

0 comments on commit edac1b3

Please sign in to comment.