Add reload method to OxiAPI class

- Implemented a new `reload` method to fetch the reload status from the API.
- The method raises an error for unsuccessful responses and returns the status code on success.
This commit is contained in:
IluaAir
2026-03-12 20:15:52 +03:00
parent de0e09af9d
commit e3392f6c76
2 changed files with 6 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ class NodeView:
self._base_url = base_url
self._data = data
def _updater(self) -> None:
def _updater(self) -> int:
response = self._session.get(f"{self._base_url}/node/next/{self.full_name}")
response.raise_for_status()
return response.status_code