Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.lovelace.resources.ResourceYAMLCollection Class Reference

Public Member Functions

def __init__ (self, data)
 
def async_get_info (self)
 
list[dict] async_items (self)
 

Public Attributes

 data
 

Static Public Attributes

bool loaded = True
 

Detailed Description

Collection representing static YAML.

Definition at line 32 of file resources.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.lovelace.resources.ResourceYAMLCollection.__init__ (   self,
  data 
)
Initialize a resource YAML collection.

Definition at line 37 of file resources.py.

Member Function Documentation

◆ async_get_info()

def homeassistant.components.lovelace.resources.ResourceYAMLCollection.async_get_info (   self)
Return the resources info for YAML mode.

Definition at line 41 of file resources.py.

◆ async_items()

list[dict] homeassistant.components.lovelace.resources.ResourceYAMLCollection.async_items (   self)
Return list of items in collection.

Definition at line 46 of file resources.py.

Member Data Documentation

◆ data

homeassistant.components.lovelace.resources.ResourceYAMLCollection.data

Definition at line 39 of file resources.py.

◆ loaded

bool homeassistant.components.lovelace.resources.ResourceYAMLCollection.loaded = True
static

Definition at line 35 of file resources.py.


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