mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 02:07:09 +00:00
Revert "Add device trackers to enabled_by_default fixture (#134446)"
This reverts commit a47fa08a9b7c29bef9c572b407e5e3f989af2953.
This commit is contained in:
parent
6a4160bcc4
commit
aeebf67575
@ -74,15 +74,9 @@ def prevent_io() -> Generator[None]:
|
|||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def entity_registry_enabled_by_default() -> Generator[None]:
|
def entity_registry_enabled_by_default() -> Generator[None]:
|
||||||
"""Test fixture that ensures all entities are enabled in the registry."""
|
"""Test fixture that ensures all entities are enabled in the registry."""
|
||||||
with (
|
with patch(
|
||||||
patch(
|
|
||||||
"homeassistant.helpers.entity.Entity.entity_registry_enabled_default",
|
"homeassistant.helpers.entity.Entity.entity_registry_enabled_default",
|
||||||
return_value=True,
|
return_value=True,
|
||||||
),
|
|
||||||
patch(
|
|
||||||
"homeassistant.components.device_tracker.config_entry.ScannerEntity.entity_registry_enabled_default",
|
|
||||||
return_value=True,
|
|
||||||
),
|
|
||||||
):
|
):
|
||||||
yield
|
yield
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user