Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.application_credentials.ApplicationCredentialsStorageCollection Class Reference
Inheritance diagram for homeassistant.components.application_credentials.ApplicationCredentialsStorageCollection:
[legend]
Collaboration diagram for homeassistant.components.application_credentials.ApplicationCredentialsStorageCollection:
[legend]

Public Member Functions

dict[str, ClientCredentialasync_client_credentials (self, str domain)
 
None async_delete_item (self, str item_id)
 
None async_import_item (self, dict[str, str] info)
 

Static Public Attributes

 CREATE_SCHEMA = vol.Schema(CREATE_FIELDS)
 

Private Member Functions

str _get_suggested_id (self, dict[str, str] info)
 
dict[str, str] _process_create_data (self, dict[str, str] data)
 
dict[str, str] _update_data (self, dict[str, str] item, dict[str, str] update_data)
 

Detailed Description

Application credential collection stored in storage.

Definition at line 82 of file __init__.py.

Member Function Documentation

◆ _get_suggested_id()

str homeassistant.components.application_credentials.ApplicationCredentialsStorageCollection._get_suggested_id (   self,
dict[str, str]  info 
)
private
Suggest an ID based on the config.

Definition at line 96 of file __init__.py.

◆ _process_create_data()

dict[str, str] homeassistant.components.application_credentials.ApplicationCredentialsStorageCollection._process_create_data (   self,
dict[str, str]  data 
)
private
Validate the config is valid.

Definition at line 87 of file __init__.py.

◆ _update_data()

dict[str, str] homeassistant.components.application_credentials.ApplicationCredentialsStorageCollection._update_data (   self,
dict[str, str]  item,
dict[str, str]   update_data 
)
private
Return a new updated data object.

Definition at line 100 of file __init__.py.

◆ async_client_credentials()

dict[str, ClientCredential] homeassistant.components.application_credentials.ApplicationCredentialsStorageCollection.async_client_credentials (   self,
str  domain 
)
Return ClientCredentials in storage for the specified domain.

Definition at line 129 of file __init__.py.

◆ async_delete_item()

None homeassistant.components.application_credentials.ApplicationCredentialsStorageCollection.async_delete_item (   self,
str  item_id 
)
Delete item, verifying credential is not in use.

Definition at line 106 of file __init__.py.

◆ async_import_item()

None homeassistant.components.application_credentials.ApplicationCredentialsStorageCollection.async_import_item (   self,
dict[str, str]  info 
)
Import an yaml credential if it does not already exist.

Definition at line 122 of file __init__.py.

Member Data Documentation

◆ CREATE_SCHEMA

homeassistant.components.application_credentials.ApplicationCredentialsStorageCollection.CREATE_SCHEMA = vol.Schema(CREATE_FIELDS)
static

Definition at line 85 of file __init__.py.


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