Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.esphome.dashboard.ESPHomeDashboardManager Class Reference

Public Member Functions

None __init__ (self, HomeAssistant hass)
 
ESPHomeDashboardCoordinator|None async_get (self)
 
None async_set_dashboard_info (self, str addon_slug, str host, int port)
 
None async_setup (self)
 

Private Attributes

 _cancel_shutdown
 
 _current_dashboard
 
 _data
 
 _hass
 

Detailed Description

Class to manage the dashboard and restore it from storage.

Definition at line 46 of file dashboard.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.esphome.dashboard.ESPHomeDashboardManager.__init__ (   self,
HomeAssistant  hass 
)
Initialize the dashboard manager.

Definition at line 49 of file dashboard.py.

Member Function Documentation

◆ async_get()

ESPHomeDashboardCoordinator | None homeassistant.components.esphome.dashboard.ESPHomeDashboardManager.async_get (   self)
Get the current dashboard.

Definition at line 66 of file dashboard.py.

◆ async_set_dashboard_info()

None homeassistant.components.esphome.dashboard.ESPHomeDashboardManager.async_set_dashboard_info (   self,
str  addon_slug,
str  host,
int   port 
)
Set the dashboard info.

Definition at line 70 of file dashboard.py.

◆ async_setup()

None homeassistant.components.esphome.dashboard.ESPHomeDashboardManager.async_setup (   self)
Restore the dashboard from storage.

Definition at line 57 of file dashboard.py.

Member Data Documentation

◆ _cancel_shutdown

homeassistant.components.esphome.dashboard.ESPHomeDashboardManager._cancel_shutdown
private

Definition at line 85 of file dashboard.py.

◆ _current_dashboard

homeassistant.components.esphome.dashboard.ESPHomeDashboardManager._current_dashboard
private

Definition at line 86 of file dashboard.py.

◆ _data

homeassistant.components.esphome.dashboard.ESPHomeDashboardManager._data
private

Definition at line 59 of file dashboard.py.

◆ _hass

homeassistant.components.esphome.dashboard.ESPHomeDashboardManager._hass
private

Definition at line 51 of file dashboard.py.


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