Remove min rssi setting from iBeacon (#78843)
This commit is contained in:
parent
0ccb495209
commit
2b8d582894
6 changed files with 3 additions and 122 deletions
|
@ -3,7 +3,7 @@
|
|||
from unittest.mock import patch
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components.ibeacon.const import CONF_MIN_RSSI, DOMAIN
|
||||
from homeassistant.components.ibeacon.const import DOMAIN
|
||||
from homeassistant.data_entry_flow import FlowResultType
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
|
@ -45,23 +45,3 @@ async def test_setup_user_already_setup(hass, enable_bluetooth):
|
|||
)
|
||||
assert result["type"] == FlowResultType.ABORT
|
||||
assert result["reason"] == "single_instance_allowed"
|
||||
|
||||
|
||||
async def test_options_flow(hass, enable_bluetooth):
|
||||
"""Test setting up via user when already setup ."""
|
||||
entry = MockConfigEntry(domain=DOMAIN)
|
||||
entry.add_to_hass(hass)
|
||||
await hass.config_entries.async_setup(entry.entry_id)
|
||||
|
||||
result = await hass.config_entries.options.async_init(entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert result["type"] == FlowResultType.FORM
|
||||
assert result["step_id"] == "init"
|
||||
|
||||
result2 = await hass.config_entries.options.async_configure(
|
||||
result["flow_id"], user_input={CONF_MIN_RSSI: -70}
|
||||
)
|
||||
|
||||
assert result2["type"] == FlowResultType.CREATE_ENTRY
|
||||
assert result2["data"] == {CONF_MIN_RSSI: -70}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue