Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.python_script.TimeWrapper Class Reference

Public Member Functions

def __getattr__ (self, attr)
 
def sleep (self, *args, **kwargs)
 

Static Public Attributes

bool warned = False
 

Detailed Description

Wrap the time module.

Definition at line 310 of file __init__.py.

Member Function Documentation

◆ __getattr__()

def homeassistant.components.python_script.TimeWrapper.__getattr__ (   self,
  attr 
)
Fetch an attribute from Time module.

Definition at line 326 of file __init__.py.

◆ sleep()

def homeassistant.components.python_script.TimeWrapper.sleep (   self,
args,
**  kwargs 
)
Sleep method that warns once.

Definition at line 316 of file __init__.py.

Member Data Documentation

◆ warned

bool homeassistant.components.python_script.TimeWrapper.warned = False
static

Definition at line 314 of file __init__.py.


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