forked from home-assistant/core
Fix zha CI test might fail on changing time (#101134)
This commit is contained in:
@@ -6,6 +6,7 @@ from copy import deepcopy
|
||||
from typing import TYPE_CHECKING
|
||||
from unittest.mock import ANY, AsyncMock, MagicMock, call, patch
|
||||
|
||||
from freezegun import freeze_time
|
||||
import pytest
|
||||
import voluptuous as vol
|
||||
import zigpy.backups
|
||||
@@ -227,6 +228,7 @@ async def test_device_cluster_commands(zha_client) -> 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:
|
||||
"""Test getting ZHA devices."""
|
||||
await zha_client.send_json({ID: 5, TYPE: "zha/devices"})
|
||||
|
Reference in New Issue
Block a user