* add config option * use code_required option in alarm * test code_required options * only use code for disarm * change tests to disarm with code * remove unneeded code variable * Update homeassistant/components/totalconnect/alarm_control_panel.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * use ServiceValidationError * translate ServiceValidationError * complete typing * Update tests/components/totalconnect/test_alarm_control_panel.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * use ServiceValidationError in test * grab usercode from correct spot * use client code instead of unfilled location code * Revert "remove unneeded code variable" This reverts commit 220de0e698e5779fcd7c45bee999a60ad186ab7f. * remove unneeded code variable * improve usercode checking * use freezer * fix usercode test data * Update homeassistant/components/totalconnect/strings.json Co-authored-by: G Johansson <goran.johansson@shiftit.se> * Update homeassistant/components/totalconnect/strings.json Co-authored-by: G Johansson <goran.johansson@shiftit.se> * update test with new message --------- Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> Co-authored-by: G Johansson <goran.johansson@shiftit.se>
9 lines
243 B
Python
9 lines
243 B
Python
"""TotalConnect constants."""
|
|
|
|
DOMAIN = "totalconnect"
|
|
CONF_USERCODES = "usercodes"
|
|
AUTO_BYPASS = "auto_bypass_low_battery"
|
|
CODE_REQUIRED = "code_required"
|
|
|
|
# Most TotalConnect alarms will work passing '-1' as usercode
|
|
DEFAULT_USERCODE = "-1"
|