mirror of
https://github.com/home-assistant/core.git
synced 2025-12-23 20:39:01 +00:00
Use is in FlowResultType enum comparison in tests (#114917)
* Use is in FlowResultType enum comparison in tests * Adjust auth * Adjust systemmonitor * Once more * Add comment
This commit is contained in:
@@ -8,7 +8,6 @@ from jaraco.abode.exceptions import (
|
||||
Exception as AbodeException,
|
||||
)
|
||||
|
||||
from homeassistant import data_entry_flow
|
||||
from homeassistant.components.abode import (
|
||||
DOMAIN as ABODE_DOMAIN,
|
||||
SERVICE_CAPTURE_IMAGE,
|
||||
@@ -19,6 +18,7 @@ from homeassistant.components.alarm_control_panel import DOMAIN as ALARM_DOMAIN
|
||||
from homeassistant.config_entries import ConfigEntryState
|
||||
from homeassistant.const import CONF_USERNAME
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.data_entry_flow import FlowResultType
|
||||
|
||||
from .common import setup_platform
|
||||
|
||||
@@ -82,7 +82,7 @@ async def test_invalid_credentials(hass: HomeAssistant) -> None:
|
||||
patch(
|
||||
"homeassistant.components.abode.config_flow.AbodeFlowHandler.async_step_reauth",
|
||||
return_value={
|
||||
"type": data_entry_flow.FlowResultType.FORM,
|
||||
"type": FlowResultType.FORM,
|
||||
"flow_id": "mock_flow",
|
||||
"step_id": "reauth_confirm",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user