Home Assistant Unofficial Reference 2024.12.1
homeassistant.helpers.instance_id Namespace Reference

Functions

str async_get (HomeAssistant hass)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string DATA_KEY = "core.uuid"
 
int DATA_VERSION = 1
 
string LEGACY_UUID_FILE = ".uuid"
 

Detailed Description

Helper to create a unique instance ID.

Function Documentation

◆ async_get()

str homeassistant.helpers.instance_id.async_get ( HomeAssistant  hass)
Get unique ID for the hass instance.

Definition at line 21 of file instance_id.py.

Variable Documentation

◆ _LOGGER

homeassistant.helpers.instance_id._LOGGER = logging.getLogger(__name__)
private

Definition at line 17 of file instance_id.py.

◆ DATA_KEY

string homeassistant.helpers.instance_id.DATA_KEY = "core.uuid"

Definition at line 12 of file instance_id.py.

◆ DATA_VERSION

int homeassistant.helpers.instance_id.DATA_VERSION = 1

Definition at line 13 of file instance_id.py.

◆ LEGACY_UUID_FILE

string homeassistant.helpers.instance_id.LEGACY_UUID_FILE = ".uuid"

Definition at line 15 of file instance_id.py.