Skip to content

Commit 190d896

Browse files
Create storage dir
1 parent a7f4833 commit 190d896

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

custom_components/battery_notes/library_updater.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ async def copy_schema(self):
121121

122122
install_schema_path = os.path.join(os.path.dirname(__file__), "schema.json")
123123
storage_schema_path = self.hass.config.path(STORAGE_DIR, "battery_notes", "schema.json")
124+
os.makedirs(os.path.dirname(storage_schema_path), exist_ok=True)
124125
shutil.copyfile(install_schema_path, storage_schema_path)
125126

126127
async def time_to_update_library(self, hours: int) -> bool:

0 commit comments

Comments
 (0)