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

Static Public Attributes

 CREATE_UPDATE_SCHEMA = vol.Schema(STORAGE_FIELDS)
 

Private Member Functions

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

Detailed Description

Input storage based collection.

Definition at line 137 of file __init__.py.

Member Function Documentation

◆ _get_suggested_id()

str homeassistant.components.counter.CounterStorageCollection._get_suggested_id (   self,
dict  info 
)
private
Suggest an ID based on the config.

Definition at line 147 of file __init__.py.

◆ _process_create_data()

dict homeassistant.components.counter.CounterStorageCollection._process_create_data (   self,
dict  data 
)
private
Validate the config is valid.

Definition at line 142 of file __init__.py.

◆ _update_data()

dict homeassistant.components.counter.CounterStorageCollection._update_data (   self,
dict  item,
dict  update_data 
)
private
Return a new updated data object.

Definition at line 151 of file __init__.py.

Member Data Documentation

◆ CREATE_UPDATE_SCHEMA

homeassistant.components.counter.CounterStorageCollection.CREATE_UPDATE_SCHEMA = vol.Schema(STORAGE_FIELDS)
static

Definition at line 140 of file __init__.py.


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