Home Assistant Unofficial Reference 2024.12.1
homeassistant.loader.ModuleWrapper Class Reference

Public Member Functions

Any __getattr__ (self, str attr)
 
None __init__ (self, HomeAssistant hass, ComponentProtocol module)
 

Private Attributes

 _hass
 
 _module
 

Detailed Description

Class to wrap a Python module and auto fill in hass argument.

Definition at line 1521 of file loader.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.loader.ModuleWrapper.__init__ (   self,
HomeAssistant  hass,
ComponentProtocol  module 
)
Initialize the module wrapper.

Definition at line 1524 of file loader.py.

Member Function Documentation

◆ __getattr__()

Any homeassistant.loader.ModuleWrapper.__getattr__ (   self,
str  attr 
)
Fetch an attribute.

Definition at line 1529 of file loader.py.

Member Data Documentation

◆ _hass

homeassistant.loader.ModuleWrapper._hass
private

Definition at line 1526 of file loader.py.

◆ _module

homeassistant.loader.ModuleWrapper._module
private

Definition at line 1527 of file loader.py.


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