Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.control4.director_utils Namespace Reference

Functions

dict[int, dict[str, Any]] _update_variables_for_config_entry (HomeAssistant hass, ConfigEntry entry, set[str] variable_names)
 
def refresh_tokens (HomeAssistant hass, ConfigEntry entry)
 
dict[int, dict[str, Any]] update_variables_for_config_entry (HomeAssistant hass, ConfigEntry entry, set[str] variable_names)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 

Detailed Description

Provides data updates from the Control4 controller for platforms.

Function Documentation

◆ _update_variables_for_config_entry()

dict[int, dict[str, Any]] homeassistant.components.control4.director_utils._update_variables_for_config_entry ( HomeAssistant  hass,
ConfigEntry  entry,
set[str]   variable_names 
)
private
Retrieve data from the Control4 director.

Definition at line 21 of file director_utils.py.

◆ refresh_tokens()

def homeassistant.components.control4.director_utils.refresh_tokens ( HomeAssistant  hass,
ConfigEntry  entry 
)
Store updated authentication and director tokens in hass.data.

Definition at line 45 of file director_utils.py.

◆ update_variables_for_config_entry()

dict[int, dict[str, Any]] homeassistant.components.control4.director_utils.update_variables_for_config_entry ( HomeAssistant  hass,
ConfigEntry  entry,
set[str]   variable_names 
)
Try to Retrieve data from the Control4 director for update_coordinator.

Definition at line 33 of file director_utils.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.control4.director_utils._LOGGER = logging.getLogger(__name__)
private

Definition at line 18 of file director_utils.py.