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

Functions

ModuleType _get_module (dict[str, ModuleType] cache, str name)
 
ModuleType async_import_module (HomeAssistant hass, str name)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 

Detailed Description

Helper to import modules from asyncio.

Function Documentation

◆ _get_module()

ModuleType homeassistant.helpers.importlib._get_module ( dict[str, ModuleType]  cache,
str  name 
)
private
Get a module.

Definition at line 24 of file importlib.py.

◆ async_import_module()

ModuleType homeassistant.helpers.importlib.async_import_module ( HomeAssistant  hass,
str  name 
)
Import a module or return it from the cache.

Definition at line 30 of file importlib.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 15 of file importlib.py.