Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.alarmdecoder.config_flow Namespace Reference

Classes

class  AlarmDecoderFlowHandler
 
class  AlarmDecoderOptionsFlowHandler
 

Functions

bool _device_already_added (list[ConfigEntry] current_entries, dict[str, Any] user_input, str|None protocol)
 
dict[str, Any] _fix_input_types (dict[str, Any] zone_input)
 
dict[str, str] _validate_zone_input (dict[str, Any]|None zone_input)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string EDIT_KEY = "edit_selection"
 
string EDIT_SETTINGS = "Arming Settings"
 
string EDIT_ZONES = "Zones"
 

Detailed Description

Config flow for AlarmDecoder.

Function Documentation

◆ _device_already_added()

bool homeassistant.components.alarmdecoder.config_flow._device_already_added ( list[ConfigEntry current_entries,
dict[str, Any]  user_input,
str | None   protocol 
)
private
Determine if entry has already been added to HA.

Definition at line 364 of file config_flow.py.

◆ _fix_input_types()

dict[str, Any] homeassistant.components.alarmdecoder.config_flow._fix_input_types ( dict[str, Any]  zone_input)
private
Convert necessary keys to int.

Since ConfigFlow inputs of type int cannot default to an empty string, we collect the values below as
strings and then convert them to ints.

Definition at line 350 of file config_flow.py.

◆ _validate_zone_input()

dict[str, str] homeassistant.components.alarmdecoder.config_flow._validate_zone_input ( dict[str, Any] | None  zone_input)
private

Definition at line 316 of file config_flow.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.alarmdecoder.config_flow._LOGGER = logging.getLogger(__name__)
private

Definition at line 56 of file config_flow.py.

◆ EDIT_KEY

string homeassistant.components.alarmdecoder.config_flow.EDIT_KEY = "edit_selection"

Definition at line 52 of file config_flow.py.

◆ EDIT_SETTINGS

string homeassistant.components.alarmdecoder.config_flow.EDIT_SETTINGS = "Arming Settings"

Definition at line 54 of file config_flow.py.

◆ EDIT_ZONES

string homeassistant.components.alarmdecoder.config_flow.EDIT_ZONES = "Zones"

Definition at line 53 of file config_flow.py.