Reolink fix not unregistering webhook during ReAuth (#117490)
This commit is contained in:
parent
6c892b227b
commit
e286621f93
2 changed files with 7 additions and 1 deletions
|
@ -5,7 +5,7 @@ from typing import Any
|
|||
from unittest.mock import AsyncMock, MagicMock, Mock, patch
|
||||
|
||||
import pytest
|
||||
from reolink_aio.exceptions import ReolinkError
|
||||
from reolink_aio.exceptions import CredentialsInvalidError, ReolinkError
|
||||
|
||||
from homeassistant.components.reolink import FIRMWARE_UPDATE_INTERVAL, const
|
||||
from homeassistant.config import async_process_ha_core_config
|
||||
|
@ -50,6 +50,11 @@ pytestmark = pytest.mark.usefixtures("reolink_connect", "reolink_platforms")
|
|||
AsyncMock(side_effect=ReolinkError("Test error")),
|
||||
ConfigEntryState.SETUP_RETRY,
|
||||
),
|
||||
(
|
||||
"get_states",
|
||||
AsyncMock(side_effect=CredentialsInvalidError("Test error")),
|
||||
ConfigEntryState.SETUP_ERROR,
|
||||
),
|
||||
(
|
||||
"supported",
|
||||
Mock(return_value=False),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue