Home Assistant Unofficial Reference 2024.12.1
homeassistant.core_config._ComponentSet Class Reference
Inheritance diagram for homeassistant.core_config._ComponentSet:
[legend]
Collaboration diagram for homeassistant.core_config._ComponentSet:
[legend]

Public Member Functions

None __init__ (self, set[str] top_level_components, set[str] all_components)
 
None add (self, str component)
 
None discard (self, str component)
 
None remove (self, str component)
 

Private Attributes

 _all_components
 
 _top_level_components
 

Detailed Description

Set of loaded components.

This set contains both top level components and platforms.

Examples:
`light`, `switch`, `hue`, `mjpeg.camera`, `universal.media_player`,
`homeassistant.scene`

The top level components set only contains the top level components.

The all components set contains all components, including platform
based components.

Definition at line 462 of file core_config.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.core_config._ComponentSet.__init__ (   self,
set[str]  top_level_components,
set[str]   all_components 
)
Initialize the component set.

Definition at line 478 of file core_config.py.

Member Function Documentation

◆ add()

None homeassistant.core_config._ComponentSet.add (   self,
str  component 
)
Add a component to the store.

Definition at line 485 of file core_config.py.

◆ discard()

None homeassistant.core_config._ComponentSet.discard (   self,
str  component 
)
Remove a component from the store.

Definition at line 503 of file core_config.py.

◆ remove()

None homeassistant.core_config._ComponentSet.remove (   self,
str  component 
)
Remove a component from the store.

Definition at line 496 of file core_config.py.

Member Data Documentation

◆ _all_components

homeassistant.core_config._ComponentSet._all_components
private

Definition at line 483 of file core_config.py.

◆ _top_level_components

homeassistant.core_config._ComponentSet._top_level_components
private

Definition at line 482 of file core_config.py.


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