Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.emulated_hue.config.Config Class Reference

Public Member Functions

None __init__ (self, HomeAssistant hass, ConfigType conf, str local_ip)
 
None async_setup (self)
 
str entity_id_to_number (self, str entity_id)
 
str get_entity_name (self, State state)
 
list[str] get_exposed_entity_ids (self)
 
bool is_state_exposed (self, State state)
 
str|None number_to_entity_id (self, str number)
 

Public Attributes

 exposed_domains
 
 hass
 
 numbers
 
 off_maps_to_on_domains
 
 store
 
 track_domains
 
 type
 

Private Member Functions

None _clear_exposed_cache (self, Event[EventStateChangedData] event)
 
bool _is_state_exposed (self, State state)
 

Private Attributes

 _entities_with_hidden_attr_in_config
 

Detailed Description

Hold configuration variables for the emulated hue bridge.

Definition at line 89 of file config.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.emulated_hue.config.Config.__init__ (   self,
HomeAssistant  hass,
ConfigType  conf,
str  local_ip 
)
Initialize the instance.

Definition at line 92 of file config.py.

Member Function Documentation

◆ _clear_exposed_cache()

None homeassistant.components.emulated_hue.config.Config._clear_exposed_cache (   self,
Event[EventStateChangedData event 
)
private
Clear the cache of exposed entity ids.

Definition at line 233 of file config.py.

◆ _is_state_exposed()

bool homeassistant.components.emulated_hue.config.Config._is_state_exposed (   self,
State  state 
)
private
Determine if an entity state should be exposed on the emulated bridge.

Async friendly.

Definition at line 245 of file config.py.

◆ async_setup()

None homeassistant.components.emulated_hue.config.Config.async_setup (   self)
Set up tracking and migrate to storage.

Definition at line 164 of file config.py.

◆ entity_id_to_number()

str homeassistant.components.emulated_hue.config.Config.entity_id_to_number (   self,
str  entity_id 
)
Get a unique number for the entity id.

Definition at line 180 of file config.py.

◆ get_entity_name()

str homeassistant.components.emulated_hue.config.Config.get_entity_name (   self,
State  state 
)
Get the name of an entity.

Definition at line 206 of file config.py.

◆ get_exposed_entity_ids()

list[str] homeassistant.components.emulated_hue.config.Config.get_exposed_entity_ids (   self)
Return a list of exposed states.

Definition at line 217 of file config.py.

◆ is_state_exposed()

bool homeassistant.components.emulated_hue.config.Config.is_state_exposed (   self,
State  state 
)
Cache determine if an entity should be exposed on the emulated bridge.

Definition at line 237 of file config.py.

◆ number_to_entity_id()

str | None homeassistant.components.emulated_hue.config.Config.number_to_entity_id (   self,
str  number 
)
Convert unique number to entity id.

Definition at line 198 of file config.py.

Member Data Documentation

◆ _entities_with_hidden_attr_in_config

homeassistant.components.emulated_hue.config.Config._entities_with_hidden_attr_in_config
private

Definition at line 147 of file config.py.

◆ exposed_domains

homeassistant.components.emulated_hue.config.Config.exposed_domains

Definition at line 136 of file config.py.

◆ hass

homeassistant.components.emulated_hue.config.Config.hass

Definition at line 94 of file config.py.

◆ numbers

homeassistant.components.emulated_hue.config.Config.numbers

Definition at line 169 of file config.py.

◆ off_maps_to_on_domains

homeassistant.components.emulated_hue.config.Config.off_maps_to_on_domains

Definition at line 124 of file config.py.

◆ store

homeassistant.components.emulated_hue.config.Config.store

Definition at line 167 of file config.py.

◆ track_domains

homeassistant.components.emulated_hue.config.Config.track_domains

Definition at line 158 of file config.py.

◆ type

homeassistant.components.emulated_hue.config.Config.type

Definition at line 95 of file config.py.


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