Disable import of disabled eebrightbox in tests (#52314)

pull/52296/head
Franck Nijhof 2021-06-29 19:59:25 +02:00 committed by GitHub
parent 935f4d16a9
commit aac0180abf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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"
)