1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-08 09:38:58 +01:00

Use pytest.mark.freeze_time in ai_task tests (#156240)

This commit is contained in:
Erik Montnemery
2025-11-10 11:07:08 +01:00
committed by GitHub
parent d0d268ffdc
commit 85bed4ca77
3 changed files with 5 additions and 7 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
"""Tests for the AI Task entity model."""
from freezegun import freeze_time
import pytest
import voluptuous as vol
from homeassistant.components.ai_task import async_generate_data
@@ -13,7 +13,7 @@ from .conftest import TEST_ENTITY_ID, MockAITaskEntity
from tests.common import MockConfigEntry
@freeze_time("2025-06-08 16:28:13")
@pytest.mark.freeze_time("2025-06-08 16:28:13")
async def test_state_generate_data(
hass: HomeAssistant,
init_components: None,