Skip to content

Commit cdf3d55

Browse files
committed
Fix issue with the initial copy of the template file
1 parent 7fea86d commit cdf3d55

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

custom_components/readme/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,13 @@ def create_initial_files(hass):
127127
if not os.path.exists(f"{base}/templates"):
128128
os.mkdir(f"{base}/templates")
129129

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

133-
copyfile(
134-
f"{base}/custom_components/readme/default.j2",
135-
f"{base}/templates/README.j2",
136-
)
133+
copyfile(
134+
f"{base}/custom_components/readme/default.j2",
135+
f"{base}/templates/README.j2",
136+
)
137137

138138

139139
def convert_lovelace(hass):

custom_components/readme/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Base component constants
33
DOMAIN = "readme"
44
DOMAIN_DATA = f"{DOMAIN}_data"
5-
VERSION = "0.1.0"
5+
VERSION = "0.1.1"
66
REQUIRED_FILES = [
77
".translations/en.json",
88
"const.py",

0 commit comments

Comments
 (0)