1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Reflect changes to pydeconz v84 (#56361)

Mostly snake case conversions and typing
But also a change in retry mechanism
Added a more complete set_* call to most types to remove the direct relation to rest API of deCONZ
This commit is contained in:
Robert Svensson
2021-09-18 09:05:08 +02:00
committed by GitHub
parent 6947912fa9
commit 539ef31046
22 changed files with 87 additions and 85 deletions

View File

@@ -3,6 +3,7 @@ from __future__ import annotations
from unittest.mock import patch
from pydeconz.websocket import SIGNAL_CONNECTION_STATE, SIGNAL_DATA
import pytest
from tests.components.light.conftest import mock_light_profiles # noqa: F401
@@ -19,10 +20,10 @@ def mock_deconz_websocket():
if data:
mock.return_value.data = data
await pydeconz_gateway_session_handler(signal="data")
await pydeconz_gateway_session_handler(signal=SIGNAL_DATA)
elif state:
mock.return_value.state = state
await pydeconz_gateway_session_handler(signal="state")
await pydeconz_gateway_session_handler(signal=SIGNAL_CONNECTION_STATE)
else:
raise NotImplementedError