Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@koston.org>
21 lines
560 B
Python
21 lines
560 B
Python
"""Tests for the Airzone integration."""
|
|
|
|
from unittest.mock import patch
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def airzone_cloud_no_websockets():
|
|
"""Fixture to completely disable Airzone Cloud WebSockets."""
|
|
with (
|
|
patch(
|
|
"homeassistant.components.airzone_cloud.AirzoneCloudApi._update_websockets",
|
|
return_value=False,
|
|
),
|
|
patch(
|
|
"homeassistant.components.airzone_cloud.AirzoneCloudApi.connect_installation_websockets",
|
|
return_value=None,
|
|
),
|
|
):
|
|
yield
|