Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.hassio.discovery.HassIODiscovery Class Reference
Inheritance diagram for homeassistant.components.hassio.discovery.HassIODiscovery:
[legend]
Collaboration diagram for homeassistant.components.hassio.discovery.HassIODiscovery:
[legend]

Public Member Functions

None __init__ (self, HomeAssistant hass, HassIO hassio)
 
None async_process_del (self, dict[str, Any] data)
 
None async_process_new (self, Discovery data)
 
None async_rediscover (self, str uuid)
 
web.Response delete (self, web.Request request, str uuid)
 
web.Response post (self, web.Request request, str uuid)
 

Public Attributes

 hass
 
 hassio
 

Static Public Attributes

string name = "api:hassio_push:discovery"
 
string url = "/api/hassio_push/discovery/{uuid}"
 

Private Attributes

 _supervisor_client
 

Detailed Description

Hass.io view to handle base part.

Definition at line 74 of file discovery.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.hassio.discovery.HassIODiscovery.__init__ (   self,
HomeAssistant  hass,
HassIO  hassio 
)
Initialize WebView.

Definition at line 80 of file discovery.py.

Member Function Documentation

◆ async_process_del()

None homeassistant.components.hassio.discovery.HassIODiscovery.async_process_del (   self,
dict[str, Any]  data 
)
Process remove discovery entry.

Definition at line 143 of file discovery.py.

◆ async_process_new()

None homeassistant.components.hassio.discovery.HassIODiscovery.async_process_new (   self,
Discovery  data 
)
Process add discovery entry.

Definition at line 114 of file discovery.py.

◆ async_rediscover()

None homeassistant.components.hassio.discovery.HassIODiscovery.async_rediscover (   self,
str  uuid 
)
Rediscover add-on when config entry is removed.

Definition at line 105 of file discovery.py.

◆ delete()

web.Response homeassistant.components.hassio.discovery.HassIODiscovery.delete (   self,
web.Request  request,
str  uuid 
)
Handle remove discovery requests.

Definition at line 98 of file discovery.py.

◆ post()

web.Response homeassistant.components.hassio.discovery.HassIODiscovery.post (   self,
web.Request  request,
str  uuid 
)
Handle new discovery requests.

Definition at line 86 of file discovery.py.

Member Data Documentation

◆ _supervisor_client

homeassistant.components.hassio.discovery.HassIODiscovery._supervisor_client
private

Definition at line 84 of file discovery.py.

◆ hass

homeassistant.components.hassio.discovery.HassIODiscovery.hass

Definition at line 82 of file discovery.py.

◆ hassio

homeassistant.components.hassio.discovery.HassIODiscovery.hassio

Definition at line 83 of file discovery.py.

◆ name

string homeassistant.components.hassio.discovery.HassIODiscovery.name = "api:hassio_push:discovery"
static

Definition at line 77 of file discovery.py.

◆ url

string homeassistant.components.hassio.discovery.HassIODiscovery.url = "/api/hassio_push/discovery/{uuid}"
static

Definition at line 78 of file discovery.py.


The documentation for this class was generated from the following file: