Remove unused SimpliSafe config flow function (#32166)
* Remove unused SimpliSafe config flow function * Code review comments from other PR * Linting
This commit is contained in:
1 parent
75f465bf7e
commit
7c2765fbff
3 files changed
+8
-27
No files matched your search
@@ -2,6 +2,8 @@
|
||||
import json
|
||||
from unittest.mock import MagicMock, PropertyMock, mock_open, patch
|
||||
|
||||
from simplipy.errors import SimplipyError
|
||||
|
||||
from homeassistant import data_entry_flow
|
||||
from homeassistant.components.simplisafe import DOMAIN, config_flow
|
||||
from homeassistant.config_entries import SOURCE_USER
|
||||
@@ -33,21 +35,8 @@ async def test_duplicate_error(hass):
|
||||
assert result["reason"] == "already_configured"
|
||||
|
||||
|
||||
async def test_get_configured_instances(hass):
|
||||
"""Test retrieving all configured instances."""
|
||||
conf = {CONF_USERNAME: "user@email.com", CONF_PASSWORD: "password"}
|
||||
|
||||
MockConfigEntry(domain=DOMAIN, unique_id="user@email.com", data=conf).add_to_hass(
|
||||
hass
|
||||
)
|
||||
|
||||
assert len(config_flow.configured_instances(hass)) == 1
|
||||
|
||||
|
||||
async def test_invalid_credentials(hass):
|
||||
"""Test that invalid credentials throws an error."""
|
||||
from simplipy.errors import SimplipyError
|
||||
|
||||
conf = {CONF_USERNAME: "user@email.com", CONF_PASSWORD: "password"}
|
||||
|
||||
flow = config_flow.SimpliSafeFlowHandler()
|
||||
|
||||
Reference in new issue
Block a user