mirror of
https://github.com/home-assistant/core.git
synced 2026-05-04 11:54:35 +02:00
Improve Config Flow and handle TooManyAttemptsBannedException in Overkiz (#68868)
This commit is contained in:
@@ -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"),
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user