Disable import of disabled eebrightbox in tests (#52314)
This commit is contained in:
parent
935f4d16a9
commit
aac0180abf
1 changed files with 4 additions and 2 deletions
|
@ -2,7 +2,8 @@
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from eebrightbox import EEBrightBoxException
|
# Integration is disabled
|
||||||
|
# from eebrightbox import EEBrightBoxException
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from homeassistant.components.device_tracker import DOMAIN
|
from homeassistant.components.device_tracker import DOMAIN
|
||||||
|
@ -46,7 +47,8 @@ def _configure_mock_get_devices(eebrightbox_mock):
|
||||||
|
|
||||||
def _configure_mock_failed_config_check(eebrightbox_mock):
|
def _configure_mock_failed_config_check(eebrightbox_mock):
|
||||||
eebrightbox_instance = eebrightbox_mock.return_value
|
eebrightbox_instance = eebrightbox_mock.return_value
|
||||||
eebrightbox_instance.__enter__.side_effect = EEBrightBoxException(
|
# Integration is disabled
|
||||||
|
eebrightbox_instance.__enter__.side_effect = EEBrightBoxException( # noqa: F821
|
||||||
"Failed to connect to the router"
|
"Failed to connect to the router"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue