Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.dynalite.convert_config Namespace Reference

Functions

dict[str, Any] convert_area (dict[str, Any] config)
 
dict[str, Any] convert_channel (dict[str, Any] config)
 
dict[str, Any] convert_config (dict[str, Any]|MappingProxyType[str, Any] config)
 
dict[str, Any] convert_default (dict[str, Any] config)
 
dict[str, Any] convert_preset (dict[str, Any] config)
 
dict[str, Any] convert_template (dict[str, Any] config)
 
def convert_with_map (config, conf_map)
 

Variables

dictionary ACTIVE_MAP
 
dictionary TEMPLATE_MAP
 

Detailed Description

Convert the HA config to the dynalite config.

Function Documentation

◆ convert_area()

dict[str, Any] homeassistant.components.dynalite.convert_config.convert_area ( dict[str, Any]  config)
Convert the config for an area.

Definition at line 88 of file convert_config.py.

◆ convert_channel()

dict[str, Any] homeassistant.components.dynalite.convert_config.convert_channel ( dict[str, Any]  config)
Convert the config for a channel.

Definition at line 68 of file convert_config.py.

◆ convert_config()

dict[str, Any] homeassistant.components.dynalite.convert_config.convert_config ( dict[str, Any] | MappingProxyType[str, Any]  config)
Convert a config dict by replacing component consts with library consts.

Definition at line 141 of file convert_config.py.

◆ convert_default()

dict[str, Any] homeassistant.components.dynalite.convert_config.convert_default ( dict[str, Any]  config)
Convert the config for the platform defaults.

Definition at line 120 of file convert_config.py.

◆ convert_preset()

dict[str, Any] homeassistant.components.dynalite.convert_config.convert_preset ( dict[str, Any]  config)
Convert the config for a preset.

Definition at line 78 of file convert_config.py.

◆ convert_template()

dict[str, Any] homeassistant.components.dynalite.convert_config.convert_template ( dict[str, Any]  config)
Convert the config for a template.

Definition at line 125 of file convert_config.py.

◆ convert_with_map()

def homeassistant.components.dynalite.convert_config.convert_with_map (   config,
  conf_map 
)
Create the initial converted map with just the basic key:value pairs updated.

Definition at line 59 of file convert_config.py.

Variable Documentation

◆ ACTIVE_MAP

dictionary homeassistant.components.dynalite.convert_config.ACTIVE_MAP
Initial value:
1 = {
2  ACTIVE_INIT: dyn_const.ACTIVE_INIT,
3  False: dyn_const.ACTIVE_OFF,
4  ACTIVE_OFF: dyn_const.ACTIVE_OFF,
5  ACTIVE_ON: dyn_const.ACTIVE_ON,
6  True: dyn_const.ACTIVE_ON,
7 }

Definition at line 45 of file convert_config.py.

◆ TEMPLATE_MAP

dictionary homeassistant.components.dynalite.convert_config.TEMPLATE_MAP
Initial value:
1 = {
2  CONF_ROOM: dyn_const.CONF_ROOM,
3  CONF_TIME_COVER: dyn_const.CONF_TIME_COVER,
4 }

Definition at line 53 of file convert_config.py.