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

Functions

Callable[[_FuncType[_T]], _FuncType[_T]] _T (Any data_key)
 
Callable[[_FuncType[_T]], _FuncType[_T]] _T (HassKey[_T] data_key)
 
Callable[[_FuncType[_T]], _FuncType[_T]] _T (str data_key)
 

Detailed Description

Helper to help coordinating calls.

Function Documentation

◆ _T() [1/3]

Callable[[_FuncType[_T]], _FuncType[_T]] homeassistant.helpers.singleton._T ( Any  data_key)
private
Decorate a function that should be called once per instance.

Result will be cached and simultaneous calls will be handled.

Definition at line 27 of file singleton.py.

◆ _T() [2/3]

Callable[[_FuncType[_T]], _FuncType[_T]] homeassistant.helpers.singleton._T ( HassKey[_T]  data_key)
private

Definition at line 18 of file singleton.py.

◆ _T() [3/3]

Callable[[_FuncType[_T]], _FuncType[_T]] homeassistant.helpers.singleton._T ( str  data_key)
private

Definition at line 24 of file singleton.py.