mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Clean up unused method from SolarEdge tests (#50684)
This commit is contained in:
parent
1afb0a0841
commit
cad41cd4ed
@ -5,7 +5,6 @@ import pytest
|
|||||||
from requests.exceptions import ConnectTimeout, HTTPError
|
from requests.exceptions import ConnectTimeout, HTTPError
|
||||||
|
|
||||||
from homeassistant import data_entry_flow
|
from homeassistant import data_entry_flow
|
||||||
from homeassistant.components.solaredge import config_flow
|
|
||||||
from homeassistant.components.solaredge.const import CONF_SITE_ID, DEFAULT_NAME, DOMAIN
|
from homeassistant.components.solaredge.const import CONF_SITE_ID, DEFAULT_NAME, DOMAIN
|
||||||
from homeassistant.config_entries import SOURCE_USER
|
from homeassistant.config_entries import SOURCE_USER
|
||||||
from homeassistant.const import CONF_API_KEY, CONF_NAME
|
from homeassistant.const import CONF_API_KEY, CONF_NAME
|
||||||
@ -27,13 +26,6 @@ def mock_controller():
|
|||||||
yield api
|
yield api
|
||||||
|
|
||||||
|
|
||||||
def init_config_flow(hass: HomeAssistant) -> config_flow.SolarEdgeConfigFlow:
|
|
||||||
"""Init a configuration flow."""
|
|
||||||
flow = config_flow.SolarEdgeConfigFlow()
|
|
||||||
flow.hass = hass
|
|
||||||
return flow
|
|
||||||
|
|
||||||
|
|
||||||
async def test_user(hass: HomeAssistant, test_api: Mock) -> None:
|
async def test_user(hass: HomeAssistant, test_api: Mock) -> None:
|
||||||
"""Test user config."""
|
"""Test user config."""
|
||||||
result = await hass.config_entries.flow.async_init(
|
result = await hass.config_entries.flow.async_init(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user