Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions aiohasupervisor/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,19 @@ async def info(self) -> RootInfo:
result = await self._client.get("info")
return RootInfo.from_dict(result.data)

async def reload_updates(self) -> None:
"""Reload updates.
Reload main components update information (OS, Supervisor, Core and plug-ins).
"""
await self._client.post("reload_updates", timeout=ClientTimeout(total=300))

async def refresh_updates(self) -> None:
"""Refresh updates."""
"""Refresh updates (discouraged)."""
await self._client.post("refresh_updates", timeout=ClientTimeout(total=300))

async def available_updates(self) -> list[AvailableUpdate]:
"""Get available updates."""
"""Get available updates (discouraged)."""
result = await self._client.get("available_updates")
return AvailableUpdates.from_dict(result.data).available_updates

Expand Down