mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
parent
e37ee68434
commit
093e85d59a
@ -29,7 +29,7 @@ type IstaConfigEntry = ConfigEntry[IstaCoordinator]
|
|||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(hass: HomeAssistant, entry: IstaConfigEntry) -> bool:
|
async def async_setup_entry(hass: HomeAssistant, entry: IstaConfigEntry) -> bool:
|
||||||
"""Set up ista Ecotrend from a config entry."""
|
"""Set up ista EcoTrend from a config entry."""
|
||||||
ista = PyEcotrendIsta(
|
ista = PyEcotrendIsta(
|
||||||
entry.data[CONF_EMAIL],
|
entry.data[CONF_EMAIL],
|
||||||
entry.data[CONF_PASSWORD],
|
entry.data[CONF_PASSWORD],
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
"""Config flow for ista Ecotrend integration."""
|
"""Config flow for ista EcoTrend integration."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ STEP_USER_DATA_SCHEMA = vol.Schema(
|
|||||||
|
|
||||||
|
|
||||||
class IstaConfigFlow(ConfigFlow, domain=DOMAIN):
|
class IstaConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||||
"""Handle a config flow for ista Ecotrend."""
|
"""Handle a config flow for ista EcoTrend."""
|
||||||
|
|
||||||
async def async_step_user(
|
async def async_step_user(
|
||||||
self, user_input: dict[str, Any] | None = None
|
self, user_input: dict[str, Any] | None = None
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"domain": "ista_ecotrend",
|
"domain": "ista_ecotrend",
|
||||||
"name": "ista Ecotrend",
|
"name": "ista EcoTrend",
|
||||||
"codeowners": ["@tr4nt0r"],
|
"codeowners": ["@tr4nt0r"],
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/ista_ecotrend",
|
"documentation": "https://www.home-assistant.io/integrations/ista_ecotrend",
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
"message": "Authentication failed for {email}, check your login credentials"
|
"message": "Authentication failed for {email}, check your login credentials"
|
||||||
},
|
},
|
||||||
"connection_exception": {
|
"connection_exception": {
|
||||||
"message": "Unable to connect and retrieve data from ista EcoTrends, try again later"
|
"message": "Unable to connect and retrieve data from ista EcoTrend, try again later"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2923,7 +2923,7 @@
|
|||||||
"iot_class": "cloud_polling"
|
"iot_class": "cloud_polling"
|
||||||
},
|
},
|
||||||
"ista_ecotrend": {
|
"ista_ecotrend": {
|
||||||
"name": "ista Ecotrend",
|
"name": "ista EcoTrend",
|
||||||
"integration_type": "hub",
|
"integration_type": "hub",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"iot_class": "cloud_polling"
|
"iot_class": "cloud_polling"
|
||||||
|
@ -1 +1 @@
|
|||||||
"""Tests for the ista Ecotrend integration."""
|
"""Tests for the ista EcoTrend integration."""
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
"""Common fixtures for the ista Ecotrend tests."""
|
"""Common fixtures for the ista EcoTrend tests."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
"""Test the ista Ecotrend config flow."""
|
"""Test the ista EcoTrend config flow."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock, MagicMock
|
from unittest.mock import AsyncMock, MagicMock
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
"""Test the ista Ecotrend init."""
|
"""Test the ista EcoTrend init."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user