1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-20 02:18:59 +00:00

Don't remove folder on Home Assistant restore

This commit is contained in:
Mike Degatano
2025-12-19 16:47:34 +00:00
parent 1196343620
commit 804811e4b4

View File

@@ -508,7 +508,7 @@ class HomeAssistant(FileConfiguration, CoreSysAttributes):
tmp_dir=self.sys_config.path_tmp, tmp_dir=self.sys_config.path_tmp,
) )
else: else:
remove_folder(self.sys_config.path_homeassistant) remove_folder(self.sys_config.path_homeassistant, content_only=True)
try: try:
shutil.copytree( shutil.copytree(