Move enable_custom_integrations fixture to decorator (#118844)

This commit is contained in:
epenet
2024-06-05 09:20:08 +02:00
committed by GitHub
parent 985e42e50c
commit c7e065c413
32 changed files with 112 additions and 121 deletions

View File

@@ -4,8 +4,9 @@ from __future__ import annotations
from datetime import timedelta
import pytest
from homeassistant.components.input_datetime import CONF_HAS_DATE, CONF_HAS_TIME, DOMAIN
from homeassistant.components.recorder import Recorder
from homeassistant.components.recorder.history import get_significant_states
from homeassistant.const import ATTR_EDITABLE
from homeassistant.core import HomeAssistant
@@ -16,9 +17,8 @@ from tests.common import async_fire_time_changed
from tests.components.recorder.common import async_wait_recording_done
async def test_exclude_attributes(
recorder_mock: Recorder, hass: HomeAssistant, enable_custom_integrations: None
) -> None:
@pytest.mark.usefixtures("recorder_mock", "enable_custom_integrations")
async def test_exclude_attributes(hass: HomeAssistant) -> None:
"""Test attributes to be excluded."""
now = dt_util.utcnow()
assert await async_setup_component(