Status

class asyncpow.apis.status.Status(base_url: URL, api_key: str, session: ClientSession, raw_response: bool)[source]

Class to interact with status-related endpoints.

Initialize the Status object with the base URL, API key, and session.

async async_get_status(raw_response: bool | None = None) dict | StatusModel[source]
Summary:

Asynchronously retrieves the status from the server.

Parameters:

raw_response (bool, optional) – return raw json. Defaults to None.

Returns:

The status information as either a dictionary or a StatusModel object.

Return type:

dict | StatusModel

async async_get_appdata(raw_response: bool = None) dict | StatusAppDataModel[source]

Retrieves the appdata from the server

Parameters:

raw_response (bool, optional) – return raw json. Defaults to None.

Returns:

The model object containing appdata items.

Return type:

dict | StatusAppDataModel