Skip to content

Commit 17e28d2

Browse files
committed
RebootOptions not ShutdownOptions
1 parent 8d124d6 commit 17e28d2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

aiohasupervisor/host.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
"""Host client for supervisor."""
22

33
from .client import _SupervisorComponentClient
4-
from .models.host import HostInfo, HostOptions, Service, ServiceList, ShutdownOptions
4+
from .models.host import (
5+
HostInfo,
6+
HostOptions,
7+
RebootOptions,
8+
Service,
9+
ServiceList,
10+
ShutdownOptions,
11+
)
512

613

714
class HostClient(_SupervisorComponentClient):
@@ -12,7 +19,7 @@ async def info(self) -> HostInfo:
1219
result = await self._client.get("host/info")
1320
return HostInfo.from_dict(result.data)
1421

15-
async def reboot(self, options: ShutdownOptions | None = None) -> None:
22+
async def reboot(self, options: RebootOptions | None = None) -> None:
1623
"""Reboot host."""
1724
await self._client.post(
1825
"host/reboot", json=options.to_dict() if options else None

0 commit comments

Comments
 (0)