Home Assistant Unofficial Reference 2024.12.1
storage.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.helpers.storage._StoreManager
 
class  homeassistant.helpers.storage.Store
 

Namespaces

 homeassistant.helpers.storage
 

Functions

None homeassistant.helpers.storage.__init__ (self, HomeAssistant hass, int version, str key, bool private=False, *bool atomic_writes=False, type[JSONEncoder]|None encoder=None, int minor_version=1, bool read_only=False)
 
None homeassistant.helpers.storage._async_callback_delayed_write (self)
 
None homeassistant.helpers.storage._async_callback_final_write (self, Event _event)
 
None homeassistant.helpers.storage._async_cleanup_delay_listener (self)
 
None homeassistant.helpers.storage._async_cleanup_final_write_listener (self)
 
None homeassistant.helpers.storage._async_ensure_final_write_listener (self)
 
def homeassistant.helpers.storage._async_handle_write_data (self, *_args)
 
_T|None homeassistant.helpers.storage._async_load (self)
 
def homeassistant.helpers.storage._async_load_data (self)
 
def homeassistant.helpers.storage._async_migrate_func (self, old_major_version, old_minor_version, old_data)
 
None homeassistant.helpers.storage._async_reschedule_delayed_write (self, float when)
 
None homeassistant.helpers.storage._async_schedule_callback_delayed_write (self)
 
None homeassistant.helpers.storage._async_write_data (self, str path, dict data)
 
def homeassistant.helpers.storage._T
 
None homeassistant.helpers.storage._write_data (self, str path, dict data)
 
None homeassistant.helpers.storage.async_delay_save (self, Callable[[], _T] data_func, float delay=0)
 
_T|None homeassistant.helpers.storage.async_load (self)
 
None homeassistant.helpers.storage.async_remove (self)
 
None homeassistant.helpers.storage.async_save (self, _T data)
 
_StoreManager homeassistant.helpers.storage.get_internal_store_manager (HomeAssistant hass)
 
None homeassistant.helpers.storage.make_read_only (self)
 
def homeassistant.helpers.storage.path (self)
 

Variables

 homeassistant.helpers.storage._atomic_writes
 
 homeassistant.helpers.storage._data
 
 homeassistant.helpers.storage._delay_handle
 
 homeassistant.helpers.storage._encoder
 
 homeassistant.helpers.storage._load_future
 
 homeassistant.helpers.storage._LOGGER = logging.getLogger(__name__)
 
 homeassistant.helpers.storage._manager
 
 homeassistant.helpers.storage._next_write_time
 
 homeassistant.helpers.storage._private
 
 homeassistant.helpers.storage._read_only
 
 homeassistant.helpers.storage._unsub_final_write_listener
 
 homeassistant.helpers.storage._write_lock
 
 homeassistant.helpers.storage.hass
 
 homeassistant.helpers.storage.key
 
int homeassistant.helpers.storage.MANAGER_CLEANUP_DELAY = 60
 
int homeassistant.helpers.storage.MAX_LOAD_CONCURRENTLY = 6
 
 homeassistant.helpers.storage.minor_version
 
string homeassistant.helpers.storage.STORAGE_DIR = ".storage"
 
 homeassistant.helpers.storage.version