mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
Avoid constant re-export in fujitsu_fglair (#126190)
Avoid re-export in fujitsu_fglair
This commit is contained in:
parent
db8c379b93
commit
799bc50c98
@ -5,13 +5,14 @@ from __future__ import annotations
|
|||||||
from contextlib import suppress
|
from contextlib import suppress
|
||||||
|
|
||||||
from ayla_iot_unofficial import new_ayla_api
|
from ayla_iot_unofficial import new_ayla_api
|
||||||
|
from ayla_iot_unofficial.fujitsu_consts import FGLAIR_APP_ID, FGLAIR_APP_SECRET
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, Platform
|
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, Platform
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers import aiohttp_client
|
from homeassistant.helpers import aiohttp_client
|
||||||
|
|
||||||
from .const import API_TIMEOUT, CONF_EUROPE, FGLAIR_APP_ID, FGLAIR_APP_SECRET
|
from .const import API_TIMEOUT, CONF_EUROPE
|
||||||
from .coordinator import FGLairCoordinator
|
from .coordinator import FGLairCoordinator
|
||||||
|
|
||||||
PLATFORMS: list[Platform] = [Platform.CLIMATE]
|
PLATFORMS: list[Platform] = [Platform.CLIMATE]
|
||||||
|
@ -5,13 +5,14 @@ import logging
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from ayla_iot_unofficial import AylaAuthError, new_ayla_api
|
from ayla_iot_unofficial import AylaAuthError, new_ayla_api
|
||||||
|
from ayla_iot_unofficial.fujitsu_consts import FGLAIR_APP_ID, FGLAIR_APP_SECRET
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry, ConfigFlow, ConfigFlowResult
|
from homeassistant.config_entries import ConfigEntry, ConfigFlow, ConfigFlowResult
|
||||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||||
from homeassistant.helpers import aiohttp_client
|
from homeassistant.helpers import aiohttp_client
|
||||||
|
|
||||||
from .const import API_TIMEOUT, CONF_EUROPE, DOMAIN, FGLAIR_APP_ID, FGLAIR_APP_SECRET
|
from .const import API_TIMEOUT, CONF_EUROPE, DOMAIN
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -2,11 +2,6 @@
|
|||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
from ayla_iot_unofficial.fujitsu_consts import ( # noqa: F401
|
|
||||||
FGLAIR_APP_ID,
|
|
||||||
FGLAIR_APP_SECRET,
|
|
||||||
)
|
|
||||||
|
|
||||||
API_TIMEOUT = 10
|
API_TIMEOUT = 10
|
||||||
API_REFRESH = timedelta(minutes=5)
|
API_REFRESH = timedelta(minutes=5)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user