Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.lovelace.dashboard.DashboardsCollection Class Reference
Inheritance diagram for homeassistant.components.lovelace.dashboard.DashboardsCollection:
[legend]
Collaboration diagram for homeassistant.components.lovelace.dashboard.DashboardsCollection:
[legend]

Public Member Functions

def __init__ (self, hass)
 

Static Public Attributes

 CREATE_SCHEMA = vol.Schema(STORAGE_DASHBOARD_CREATE_FIELDS)
 
 UPDATE_SCHEMA = vol.Schema(STORAGE_DASHBOARD_UPDATE_FIELDS)
 

Private Member Functions

str _get_suggested_id (self, dict info)
 
dict _process_create_data (self, dict data)
 
dict _update_data (self, dict item, dict update_data)
 

Detailed Description

Collection of dashboards.

Definition at line 261 of file dashboard.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.lovelace.dashboard.DashboardsCollection.__init__ (   self,
  hass 
)
Initialize the dashboards collection.

Definition at line 267 of file dashboard.py.

Member Function Documentation

◆ _get_suggested_id()

str homeassistant.components.lovelace.dashboard.DashboardsCollection._get_suggested_id (   self,
dict  info 
)
private
Suggest an ID based on the config.

Definition at line 288 of file dashboard.py.

◆ _process_create_data()

dict homeassistant.components.lovelace.dashboard.DashboardsCollection._process_create_data (   self,
dict  data 
)
private
Validate the config is valid.

Definition at line 273 of file dashboard.py.

◆ _update_data()

dict homeassistant.components.lovelace.dashboard.DashboardsCollection._update_data (   self,
dict  item,
dict  update_data 
)
private
Return a new updated data object.

Definition at line 292 of file dashboard.py.

Member Data Documentation

◆ CREATE_SCHEMA

homeassistant.components.lovelace.dashboard.DashboardsCollection.CREATE_SCHEMA = vol.Schema(STORAGE_DASHBOARD_CREATE_FIELDS)
static

Definition at line 264 of file dashboard.py.

◆ UPDATE_SCHEMA

homeassistant.components.lovelace.dashboard.DashboardsCollection.UPDATE_SCHEMA = vol.Schema(STORAGE_DASHBOARD_UPDATE_FIELDS)
static

Definition at line 265 of file dashboard.py.


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