Remove min rssi setting from iBeacon (#78843)

This commit is contained in:
J. Nick Koston 2022-09-22 17:39:00 -10:00 committed by GitHub
parent 0ccb495209
commit 2b8d582894
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 3 additions and 122 deletions

View file

@ -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}