Skip to content

Commit

Permalink
Fix issue with the initial copy of the template file
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Aug 11, 2019
1 parent 7fea86d commit cdf3d55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions custom_components/readme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ def create_initial_files(hass):
if not os.path.exists(f"{base}/templates"):
os.mkdir(f"{base}/templates")

if not os.path.exists(f"{base}/templates/README.j2"):
from shutil import copyfile
if not os.path.exists(f"{base}/templates/README.j2"):
from shutil import copyfile

copyfile(
f"{base}/custom_components/readme/default.j2",
f"{base}/templates/README.j2",
)
copyfile(
f"{base}/custom_components/readme/default.j2",
f"{base}/templates/README.j2",
)


def convert_lovelace(hass):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/readme/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Base component constants
DOMAIN = "readme"
DOMAIN_DATA = f"{DOMAIN}_data"
VERSION = "0.1.0"
VERSION = "0.1.1"
REQUIRED_FILES = [
".translations/en.json",
"const.py",
Expand Down

0 comments on commit cdf3d55

Please sign in to comment.