Skip to content

Commit ced8135

Browse files
committed
run already_configured test only once
1 parent 2c621b5 commit ced8135

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_config_flow.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,10 @@ async def test_device_not_supported(
196196

197197

198198
@pytest.mark.usefixtures("enable_bluetooth")
199-
async def test_already_configured(bms_fixture: str, hass: HomeAssistant) -> None:
199+
async def test_already_configured(hass: HomeAssistant) -> None:
200200
"""Test that same device cannot be added twice."""
201201

202-
cfg: MockConfigEntry = mock_config(bms_fixture)
202+
cfg: MockConfigEntry = mock_config()
203203
cfg.add_to_hass(hass)
204204

205205
await hass.config_entries.async_setup(cfg.entry_id)
@@ -210,7 +210,7 @@ async def test_already_configured(bms_fixture: str, hass: HomeAssistant) -> None
210210
context={"source": SOURCE_USER},
211211
data={
212212
CONF_ADDRESS: "cc:cc:cc:cc:cc:cc",
213-
"type": "aiobmsble.bms.ogt_bms",
213+
"type": "aiobmsble.bms.dummy_bms",
214214
},
215215
)
216216
assert result.get("type") == FlowResultType.ABORT

0 commit comments

Comments
 (0)