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

Static Public Attributes

 SCHEMA = vol.Schema(vol.All(STORAGE_FIELDS, _cv_input_number))
 

Private Member Functions

collection.SerializedStorageCollection|None _async_load_data (self)
 
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 167 of file __init__.py.

Member Function Documentation

◆ _async_load_data()

collection.SerializedStorageCollection | None homeassistant.components.input_number.NumberStorageCollection._async_load_data (   self)
private
Load the data.

A past bug caused frontend to add initial value to all input numbers.
This drops that.

Definition at line 181 of file __init__.py.

◆ _get_suggested_id()

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

Definition at line 177 of file __init__.py.

◆ _process_create_data()

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

Definition at line 172 of file __init__.py.

◆ _update_data()

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

Definition at line 197 of file __init__.py.

Member Data Documentation

◆ SCHEMA

homeassistant.components.input_number.NumberStorageCollection.SCHEMA = vol.Schema(vol.All(STORAGE_FIELDS, _cv_input_number))
static

Definition at line 170 of file __init__.py.


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