From 1a7e316b51a099e58971935417f9b169e34a1dd1 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 16 Mar 2023 18:19:29 +0100 Subject: [PATCH] Fix lingering timer in condition tests (#89807) --- tests/helpers/test_condition.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tests/helpers/test_condition.py b/tests/helpers/test_condition.py index e345da1538c..fdbe9eb316b 100644 --- a/tests/helpers/test_condition.py +++ b/tests/helpers/test_condition.py @@ -6,7 +6,6 @@ from unittest.mock import AsyncMock, patch import pytest import voluptuous as vol -from homeassistant.components import sun import homeassistant.components.automation as automation from homeassistant.components.sensor import SensorDeviceClass from homeassistant.const import ( @@ -39,15 +38,6 @@ def calls(hass: HomeAssistant) -> list[ServiceCall]: return async_mock_service(hass, "test", "automation") -@pytest.fixture(autouse=True) -def setup_comp(hass: HomeAssistant) -> None: - """Initialize components.""" - hass.config.set_time_zone(hass.config.time_zone) - hass.loop.run_until_complete( - async_setup_component(hass, sun.DOMAIN, {sun.DOMAIN: {}}) - ) - - def assert_element(trace_element, expected_element, path): """Assert a trace element is as expected.