mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Remove deprecated data entry flow constants (#131800)
* Remove deprecated data entry flow constants * Fix * Fix * Fix * Fix --------- Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
This commit is contained in:
@@ -13,11 +13,7 @@ from homeassistant.core import Event, HomeAssistant, callback
|
||||
from homeassistant.helpers import config_validation as cv
|
||||
from homeassistant.util.decorator import Registry
|
||||
|
||||
from .common import (
|
||||
async_capture_events,
|
||||
help_test_all,
|
||||
import_and_test_deprecated_constant_enum,
|
||||
)
|
||||
from .common import async_capture_events
|
||||
|
||||
|
||||
class MockFlowManager(data_entry_flow.FlowManager):
|
||||
@@ -985,22 +981,6 @@ async def test_find_flows_by_init_data_type(manager: MockFlowManager) -> None:
|
||||
assert len(manager.async_progress()) == 0
|
||||
|
||||
|
||||
def test_all() -> None:
|
||||
"""Test module.__all__ is correctly set."""
|
||||
help_test_all(data_entry_flow)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(("enum"), list(data_entry_flow.FlowResultType))
|
||||
def test_deprecated_constants(
|
||||
caplog: pytest.LogCaptureFixture,
|
||||
enum: data_entry_flow.FlowResultType,
|
||||
) -> None:
|
||||
"""Test deprecated constants."""
|
||||
import_and_test_deprecated_constant_enum(
|
||||
caplog, data_entry_flow, enum, "RESULT_TYPE_", "2025.1"
|
||||
)
|
||||
|
||||
|
||||
def test_section_in_serializer() -> None:
|
||||
"""Test section with custom_serializer."""
|
||||
assert cv.custom_serializer(
|
||||
|
||||
Reference in New Issue
Block a user