Classes | |
| class | HassIO |
| class | HassioAPIError |
Functions | |
| Callable[_P, Coroutine[Any, Any, bool]] | _P (Callable[_P, Coroutine[Any, Any, dict[str, Any]]] funct) |
| dict | async_create_backup (HomeAssistant hass, dict payload, bool partial=False) |
| dict[str, bool] | async_get_green_settings (HomeAssistant hass) |
| dict[str, bool] | async_get_yellow_settings (HomeAssistant hass) |
| dict | async_reboot_host (HomeAssistant hass) |
| dict | async_set_green_settings (HomeAssistant hass, dict[str, bool] settings) |
| dict | async_set_yellow_settings (HomeAssistant hass, dict[str, bool] settings) |
| bool | async_update_diagnostics (HomeAssistant hass, bool diagnostics) |
| SupervisorClient | get_supervisor_client (HomeAssistant hass) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| string | KEY_SUPERVISOR_CLIENT = "supervisor_client" |
Handler for Hass.io.
|
private |
| dict homeassistant.components.hassio.handler.async_create_backup | ( | HomeAssistant | hass, |
| dict | payload, | ||
| bool | partial = False |
||
| ) |
Create a full or partial backup. The caller of the function should handle HassioAPIError.
Definition at line 81 of file handler.py.
| dict[str, bool] homeassistant.components.hassio.handler.async_get_green_settings | ( | HomeAssistant | hass | ) |
Return settings specific to Home Assistant Green.
Definition at line 95 of file handler.py.
| dict[str, bool] homeassistant.components.hassio.handler.async_get_yellow_settings | ( | HomeAssistant | hass | ) |
Return settings specific to Home Assistant Yellow.
Definition at line 116 of file handler.py.
| dict homeassistant.components.hassio.handler.async_reboot_host | ( | HomeAssistant | hass | ) |
Reboot the host. Returns an empty dict.
Definition at line 137 of file handler.py.
| dict homeassistant.components.hassio.handler.async_set_green_settings | ( | HomeAssistant | hass, |
| dict[str, bool] | settings | ||
| ) |
Set settings specific to Home Assistant Green. Returns an empty dict.
Definition at line 102 of file handler.py.
| dict homeassistant.components.hassio.handler.async_set_yellow_settings | ( | HomeAssistant | hass, |
| dict[str, bool] | settings | ||
| ) |
Set settings specific to Home Assistant Yellow. Returns an empty dict.
Definition at line 123 of file handler.py.
| bool homeassistant.components.hassio.handler.async_update_diagnostics | ( | HomeAssistant | hass, |
| bool | diagnostics | ||
| ) |
Update Supervisor diagnostics toggle. The caller of the function should handle HassioAPIError.
Definition at line 70 of file handler.py.
| SupervisorClient homeassistant.components.hassio.handler.get_supervisor_client | ( | HomeAssistant | hass | ) |
Return supervisor client.
Definition at line 344 of file handler.py.
|
private |
Definition at line 29 of file handler.py.
| string homeassistant.components.hassio.handler.KEY_SUPERVISOR_CLIENT = "supervisor_client" |
Definition at line 31 of file handler.py.