Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.esphome.domain_data.DomainData Class Reference

Public Member Functions

Self get (cls, HomeAssistant hass)
 
RuntimeEntryData get_entry_data (self, ESPHomeConfigEntry entry)
 
ESPHomeStorage get_or_create_store (self, HomeAssistant hass, ESPHomeConfigEntry entry)
 

Static Public Attributes

 default_factory
 
 ESPHomeBluetoothCache
 

Detailed Description

Define a class that stores global esphome data in hass.data[DOMAIN].

Definition at line 21 of file domain_data.py.

Member Function Documentation

◆ get()

Self homeassistant.components.esphome.domain_data.DomainData.get (   cls,
HomeAssistant  hass 
)
Get the global DomainData instance stored in hass.data.

Definition at line 49 of file domain_data.py.

◆ get_entry_data()

RuntimeEntryData homeassistant.components.esphome.domain_data.DomainData.get_entry_data (   self,
ESPHomeConfigEntry  entry 
)
Return the runtime entry data associated with this config entry.

Raises KeyError if the entry isn't loaded yet.

Definition at line 29 of file domain_data.py.

◆ get_or_create_store()

ESPHomeStorage homeassistant.components.esphome.domain_data.DomainData.get_or_create_store (   self,
HomeAssistant  hass,
ESPHomeConfigEntry   entry 
)
Get or create a Store instance for the given config entry.

Definition at line 36 of file domain_data.py.

Member Data Documentation

◆ default_factory

homeassistant.components.esphome.domain_data.DomainData.default_factory
static

Definition at line 24 of file domain_data.py.

◆ ESPHomeBluetoothCache

homeassistant.components.esphome.domain_data.DomainData.ESPHomeBluetoothCache
static

Definition at line 25 of file domain_data.py.


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