mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Fix zha CI test might fail on changing time (#101134)
This commit is contained in:
parent
581a045617
commit
1546dee36e
@ -6,6 +6,7 @@ from copy import deepcopy
|
|||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
from unittest.mock import ANY, AsyncMock, MagicMock, call, patch
|
from unittest.mock import ANY, AsyncMock, MagicMock, call, patch
|
||||||
|
|
||||||
|
from freezegun import freeze_time
|
||||||
import pytest
|
import pytest
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
import zigpy.backups
|
import zigpy.backups
|
||||||
@ -227,6 +228,7 @@ async def test_device_cluster_commands(zha_client) -> None:
|
|||||||
assert command[TYPE] is not None
|
assert command[TYPE] is not None
|
||||||
|
|
||||||
|
|
||||||
|
@freeze_time("2023-09-23 20:16:00+00:00")
|
||||||
async def test_list_devices(zha_client) -> None:
|
async def test_list_devices(zha_client) -> None:
|
||||||
"""Test getting ZHA devices."""
|
"""Test getting ZHA devices."""
|
||||||
await zha_client.send_json({ID: 5, TYPE: "zha/devices"})
|
await zha_client.send_json({ID: 5, TYPE: "zha/devices"})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user