Remove unused RainMachine config flow function (#32165)

* Remove unused RainMachine config flow function

* Remove test we don't need

* Code review comments

* Linting
This commit is contained in:
Aaron Bach authored and GitHub committed 2020-02-24 22:01:55 -07:00
1 parent 7e387f93d6
commit 75f465bf7e
3 files changed
+6 -33

No files matched your search

@@ -29,8 +29,6 @@ async def test_duplicate_error(hass):
MockConfigEntry(domain=DOMAIN, unique_id="192.168.1.100", data=conf).add_to_hass(
hass
)
flow = config_flow.RainMachineFlowHandler()
flow.hass = hass
result = await hass.config_entries.flow.async_init(
DOMAIN, context={"source": SOURCE_USER}, data=conf
@@ -39,22 +37,6 @@ 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_IP_ADDRESS: "192.168.1.100",
CONF_PASSWORD: "password",
CONF_PORT: 8080,
CONF_SSL: True,
}
MockConfigEntry(domain=DOMAIN, unique_id="192.168.1.100", data=conf).add_to_hass(
hass
)
assert len(config_flow.configured_instances(hass)) == 1
async def test_invalid_password(hass):
"""Test that an invalid password throws an error."""
conf = {