|
| None | __init__ (self, str host, aiohttp.ClientSession websession) |
| |
|
| web.StreamResponse | _handle (self, web.Request request, str path) |
| |
Hass.io view to handle base part.
Definition at line 137 of file http.py.
◆ __init__()
| None homeassistant.components.hassio.http.HassIOView.__init__ |
( |
|
self, |
|
|
str |
host, |
|
|
aiohttp.ClientSession |
websession |
|
) |
| |
Initialize a Hass.io base view.
Definition at line 144 of file http.py.
◆ _handle()
| web.StreamResponse homeassistant.components.hassio.http.HassIOView._handle |
( |
|
self, |
|
|
web.Request |
request, |
|
|
str |
path |
|
) |
| |
|
private |
Return a client request with proxy origin for Hass.io supervisor.
Use cases:
- Onboarding allows restoring backups
- Load Supervisor panel and add-on logo unauthenticated
- User upload/restore backups
Definition at line 149 of file http.py.
◆ _host
| homeassistant.components.hassio.http.HassIOView._host |
|
private |
◆ _websession
| homeassistant.components.hassio.http.HassIOView._websession |
|
private |
◆ get
| web.StreamResponse homeassistant.components.hassio.http.HassIOView.get = _handle |
|
static |
◆ name
| string homeassistant.components.hassio.http.HassIOView.name = "api:hassio" |
|
static |
◆ post
| web.StreamResponse homeassistant.components.hassio.http.HassIOView.post = _handle |
|
static |
◆ requires_auth
| bool homeassistant.components.hassio.http.HassIOView.requires_auth = False |
|
static |
◆ url
| string homeassistant.components.hassio.http.HassIOView.url = "/api/hassio/{path:.+}" |
|
static |
The documentation for this class was generated from the following file:
- core/homeassistant/components/hassio/http.py