Update phrasing and pin validation for homekit_controller (#40006)

This commit is contained in:
J. Nick Koston 2020-09-13 15:26:04 -05:00 committed by GitHub
parent cd26384634
commit 46f9c0fb8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 110 additions and 83 deletions

View file

@ -52,14 +52,17 @@ INVALID_PAIRING_CODES = [
"111-11-111 ",
"111-11-111a",
"1111111",
"22222222",
]
VALID_PAIRING_CODES = [
"111-11-111",
"123-45-678",
"11111111",
"114-11-111",
"123-45-679",
"123-45-679 ",
"11121111",
"98765432",
" 98765432 ",
]
@ -548,6 +551,7 @@ async def test_user_works(hass, controller):
assert get_flow_context(hass, result) == {
"source": "user",
"unique_id": "00:00:00:00:00:00",
"title_placeholders": {"name": "TestDevice"},
}
result = await hass.config_entries.flow.async_configure(