Disable import of disabled eebrightbox in tests (#52314)
parent
935f4d16a9
commit
aac0180abf
|
@ -2,7 +2,8 @@
|
|||
from datetime import datetime
|
||||
from unittest.mock import patch
|
||||
|
||||
from eebrightbox import EEBrightBoxException
|
||||
# Integration is disabled
|
||||
# from eebrightbox import EEBrightBoxException
|
||||
import pytest
|
||||
|
||||
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):
|
||||
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"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue