Skip to content

Commit

Permalink
Adjust scope of zha global quirks fixture (home-assistant#132463)
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet authored Dec 6, 2024
1 parent 0c8ebbe commit b4d01df
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/components/zha/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import warnings

import pytest
import zhaquirks
import zigpy
from zigpy.application import ControllerApplication
import zigpy.backups
Expand Down Expand Up @@ -38,7 +39,7 @@
COUNTER_NAMES = ["counter_1", "counter_2", "counter_3"]


@pytest.fixture(scope="module", autouse=True)
@pytest.fixture(scope="package", autouse=True)
def globally_load_quirks():
"""Load quirks automatically so that ZHA tests run deterministically in isolation.
Expand All @@ -47,8 +48,6 @@ def globally_load_quirks():
run.
"""

import zhaquirks # pylint: disable=import-outside-toplevel

zhaquirks.setup()


Expand Down

0 comments on commit b4d01df

Please sign in to comment.