mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-26 18:46:29 +00:00
Bugfix rollback if the hass instant is complete corrupt (#558)
This commit is contained in:
parent
4fcb516c75
commit
a71ebba940
@ -213,7 +213,7 @@ class HomeAssistant(JsonConfig, CoreSysAttributes):
|
|||||||
async def update(self, version=None):
|
async def update(self, version=None):
|
||||||
"""Update HomeAssistant version."""
|
"""Update HomeAssistant version."""
|
||||||
version = version or self.last_version
|
version = version or self.last_version
|
||||||
rollback = self.version
|
rollback = self.version if not self.error_state else None
|
||||||
running = await self.instance.is_running()
|
running = await self.instance.is_running()
|
||||||
exists = await self.instance.exists()
|
exists = await self.instance.exists()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user