Minor deCONZ clean up (#76323)
* Rename secondary_temperature with internal_temperature * Prefix binary and sensor descriptions matching on all sensor devices with COMMON_ * Always create entities in the same order Its been reported previously that if the integration is removed and setup again that entity IDs can change if not sorted in the numerical order * Rename alarmsystems to alarm_systems * Use websocket enums * Don't use legacy pydeconz constants * Bump pydeconz to v103 * unsub -> unsubscribe
This commit is contained in:
parent
742877f79b
commit
c2f026d0a7
12 changed files with 38 additions and 35 deletions
|
@ -3,7 +3,7 @@ from __future__ import annotations
|
|||
|
||||
from unittest.mock import patch
|
||||
|
||||
from pydeconz.websocket import SIGNAL_CONNECTION_STATE, SIGNAL_DATA
|
||||
from pydeconz.websocket import Signal
|
||||
import pytest
|
||||
|
||||
from tests.components.light.conftest import mock_light_profiles # noqa: F401
|
||||
|
@ -20,10 +20,10 @@ def mock_deconz_websocket():
|
|||
|
||||
if data:
|
||||
mock.return_value.data = data
|
||||
await pydeconz_gateway_session_handler(signal=SIGNAL_DATA)
|
||||
await pydeconz_gateway_session_handler(signal=Signal.DATA)
|
||||
elif state:
|
||||
mock.return_value.state = state
|
||||
await pydeconz_gateway_session_handler(signal=SIGNAL_CONNECTION_STATE)
|
||||
await pydeconz_gateway_session_handler(signal=Signal.CONNECTION_STATE)
|
||||
else:
|
||||
raise NotImplementedError
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue