Home Assistant Unofficial Reference 2024.12.1
homeassistant.util.yaml.loader.Secrets Class Reference

Public Member Functions

None __init__ (self, Path config_dir)
 
str get (self, str requester_path, str secret)
 

Public Attributes

 config_dir
 

Private Member Functions

dict[str, str] _load_secret_yaml (self, Path secret_dir)
 

Detailed Description

Store secrets while loading YAML.

Definition at line 43 of file loader.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.util.yaml.loader.Secrets.__init__ (   self,
Path  config_dir 
)
Initialize secrets.

Definition at line 46 of file loader.py.

Member Function Documentation

◆ _load_secret_yaml()

dict[str, str] homeassistant.util.yaml.loader.Secrets._load_secret_yaml (   self,
Path  secret_dir 
)
private
Load the secrets yaml from path.

Definition at line 77 of file loader.py.

◆ get()

str homeassistant.util.yaml.loader.Secrets.get (   self,
str  requester_path,
str  secret 
)
Return the value of a secret.

Definition at line 51 of file loader.py.

Member Data Documentation

◆ config_dir

homeassistant.util.yaml.loader.Secrets.config_dir

Definition at line 48 of file loader.py.


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