mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Disable import of disabled eebrightbox in tests (#52314)
This commit is contained in:
parent
935f4d16a9
commit
aac0180abf
@ -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…
x
Reference in New Issue
Block a user