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:
1 parent
7e387f93d6
commit
75f465bf7e
3 files changed
+6
-33
No files matched your search
@@ -5,19 +5,9 @@ import voluptuous as vol
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.const import CONF_IP_ADDRESS, CONF_PASSWORD, CONF_PORT
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.helpers import aiohttp_client
|
||||
|
||||
from .const import DEFAULT_PORT, DOMAIN
|
||||
|
||||
|
||||
@callback
|
||||
def configured_instances(hass):
|
||||
"""Return a set of configured RainMachine instances."""
|
||||
return set(
|
||||
entry.data[CONF_IP_ADDRESS]
|
||||
for entry in hass.config_entries.async_entries(DOMAIN)
|
||||
)
|
||||
from .const import DEFAULT_PORT, DOMAIN # pylint: disable=unused-import
|
||||
|
||||
|
||||
class RainMachineFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
|
||||
Reference in new issue
Block a user