mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Use is in enum comparison in config flow tests A-E (#114669)
This commit is contained in:
committed by
GitHub
parent
ee66f6ec8c
commit
9b41e3d124
@@ -5,9 +5,10 @@ from unittest.mock import patch
|
||||
from blinkpy.auth import LoginError
|
||||
from blinkpy.blinkpy import BlinkSetupError
|
||||
|
||||
from homeassistant import config_entries, data_entry_flow
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components.blink import DOMAIN
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.data_entry_flow import FlowResultType
|
||||
|
||||
|
||||
async def test_form(hass: HomeAssistant) -> None:
|
||||
@@ -295,5 +296,5 @@ async def test_reauth_shows_user_step(hass: HomeAssistant) -> None:
|
||||
context={"source": config_entries.SOURCE_REAUTH},
|
||||
data={"username": "blink@example.com", "password": "invalid_password"},
|
||||
)
|
||||
assert result["type"] == data_entry_flow.FlowResultType.FORM
|
||||
assert result["type"] is FlowResultType.FORM
|
||||
assert result["step_id"] == "user"
|
||||
|
||||
Reference in New Issue
Block a user