Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.screenlogic.util Namespace Reference

Functions

None cleanup_excluded_entity (ScreenlogicDataUpdateCoordinator coordinator, str platform_domain, ScreenLogicDataPath data_path)
 
str generate_unique_id (*str|int|None args)
 
str get_ha_unit (sl_unit)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 

Detailed Description

Utility functions for the ScreenLogic integration.

Function Documentation

◆ cleanup_excluded_entity()

None homeassistant.components.screenlogic.util.cleanup_excluded_entity ( ScreenlogicDataUpdateCoordinator  coordinator,
str  platform_domain,
ScreenLogicDataPath  data_path 
)
Remove excluded entity if it exists.

Definition at line 34 of file util.py.

◆ generate_unique_id()

str homeassistant.components.screenlogic.util.generate_unique_id ( *str | int | None  args)
Generate new unique_id for a screenlogic entity from specified parameters.

Definition at line 15 of file util.py.

◆ get_ha_unit()

str homeassistant.components.screenlogic.util.get_ha_unit (   sl_unit)
Return equivalent Home Assistant unit of measurement if exists.

Definition at line 27 of file util.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.screenlogic.util._LOGGER = logging.getLogger(__name__)
private

Definition at line 12 of file util.py.