Home Assistant Unofficial Reference 2024.12.1
__init__.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.util.Throttle
 

Namespaces

 homeassistant.util
 

Functions

_U|None homeassistant.util._U (_T|None value, Callable[[_T], _U] to_type, _U|None default=None)
 
str homeassistant.util.ensure_unique_string (str preferred_string, Iterable[str]|KeysView[str] current_strings)
 
str homeassistant.util.get_random_string (int length=10)
 
None homeassistant.util.raise_if_invalid_filename (str filename)
 
None homeassistant.util.raise_if_invalid_path (str path)
 
str homeassistant.util.repr_helper (Any inp)
 
str homeassistant.util.slugify (str|None text, *str separator="_")
 

Variables

 homeassistant.util.RE_SANITIZE_FILENAME = re.compile(r"(~|\.\.|/|\\‍)")
 
 homeassistant.util.RE_SANITIZE_PATH = re.compile(r"(~|\.(\.)+)")