Improve Config Flow and handle TooManyAttemptsBannedException in Overkiz (#68868)

This commit is contained in:
Mick Vleeshouwer
2022-03-29 19:19:57 -07:00
committed by GitHub
parent 9a150c2234
commit 365ea59b64
7 changed files with 11 additions and 4 deletions
@@ -7,6 +7,7 @@ from aiohttp import ClientError
from pyoverkiz.exceptions import (
BadCredentialsException,
MaintenanceException,
TooManyAttemptsBannedException,
TooManyRequestsException,
)
import pytest
@@ -86,6 +87,7 @@ async def test_form(hass: HomeAssistant) -> None:
(TimeoutError, "cannot_connect"),
(ClientError, "cannot_connect"),
(MaintenanceException, "server_in_maintenance"),
(TooManyAttemptsBannedException, "too_many_attempts"),
(Exception, "unknown"),
],
)