mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
Remove unused function in hassio/update (#136701)
This commit is contained in:
parent
1b78bbaaab
commit
be7a7c94f6
@ -4,7 +4,7 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from aiohasupervisor import SupervisorClient, SupervisorError
|
from aiohasupervisor import SupervisorError
|
||||||
from aiohasupervisor.models import OSUpdate
|
from aiohasupervisor.models import OSUpdate
|
||||||
from awesomeversion import AwesomeVersion, AwesomeVersionStrategy
|
from awesomeversion import AwesomeVersion, AwesomeVersionStrategy
|
||||||
|
|
||||||
@ -297,10 +297,3 @@ class SupervisorCoreUpdateEntity(HassioCoreEntity, UpdateEntity):
|
|||||||
) -> None:
|
) -> None:
|
||||||
"""Install an update."""
|
"""Install an update."""
|
||||||
await update_core(self.hass, version, backup)
|
await update_core(self.hass, version, backup)
|
||||||
|
|
||||||
|
|
||||||
async def _default_agent(client: SupervisorClient) -> str:
|
|
||||||
"""Return the default agent for creating a backup."""
|
|
||||||
mounts = await client.mounts.info()
|
|
||||||
default_mount = mounts.default_backup_mount
|
|
||||||
return f"hassio.{default_mount if default_mount is not None else 'local'}"
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user