* Add test for invalid usercode * Add usercodes to totalconnect. * Update existing tests for usercodes * Fix tests * Add test for invalid usercode * Add usercodes to totalconnect. * Update existing tests for usercodes * Fix tests * Remove YAML support * Fix conflict * Bump to total_connect_client 0.56 * Change Exception to HomeAssistantError * Fix config_flow.py * Simplify async_setup since no yaml * Remove import from config flow and tests * Add reauth and test for it. Various other fixes. * Fix pylint in __init__ * Show config yaml as deprecated * separate config_flow and init tests * Assert ENTRY_STATE_SETUP_ERROR in init test * Add test for reauth flow * Fix reauth and tests * Fix strings * Restore username and usercode with new passord * Correct the integration name * Update tests/components/totalconnect/test_config_flow.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update tests/components/totalconnect/test_init.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update .coveragerc * Add test for invalid auth during reauth * Bump total-connect-client to 0.57 * Fix .coveragerc * More tests for usercodes * Fix usercode test * Reload config entry on reauth Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
8 lines
198 B
Python
8 lines
198 B
Python
"""TotalConnect constants."""
|
|
|
|
DOMAIN = "totalconnect"
|
|
CONF_USERCODES = "usercodes"
|
|
CONF_LOCATION = "location"
|
|
|
|
# Most TotalConnect alarms will work passing '-1' as usercode
|
|
DEFAULT_USERCODE = "-1"
|