diff --git a/custom_components/ipv64/__init__.py b/custom_components/ipv64/__init__.py index 47b230b..fc9c5ad 100644 --- a/custom_components/ipv64/__init__.py +++ b/custom_components/ipv64/__init__.py @@ -4,12 +4,11 @@ import logging -import voluptuous as vol - from homeassistant import config_entries from homeassistant.const import Platform from homeassistant.core import HomeAssistant, ServiceCall from homeassistant.helpers.typing import ConfigType +import voluptuous as vol from .const import DATA_HASS_CONFIG, DATA_SCHEMA, DOMAIN, SERVICE_REFRESH from .coordinator import IPv64DataUpdateCoordinator diff --git a/custom_components/ipv64/config_flow.py b/custom_components/ipv64/config_flow.py index d85bf16..6502431 100644 --- a/custom_components/ipv64/config_flow.py +++ b/custom_components/ipv64/config_flow.py @@ -6,8 +6,6 @@ import logging import aiohttp -import voluptuous as vol - from homeassistant import config_entries, core from homeassistant.const import CONF_DOMAIN, CONF_SCAN_INTERVAL, CONF_TOKEN from homeassistant.data_entry_flow import FlowResult @@ -19,6 +17,7 @@ NumberSelectorConfig, NumberSelectorMode, ) +import voluptuous as vol from .const import ( CONF_API_ECONOMY, diff --git a/custom_components/ipv64/const.py b/custom_components/ipv64/const.py index 331430d..b68146c 100644 --- a/custom_components/ipv64/const.py +++ b/custom_components/ipv64/const.py @@ -4,8 +4,6 @@ from typing import Final -import voluptuous as vol - from homeassistant.const import CONF_DOMAIN, CONF_SCAN_INTERVAL, CONF_TOKEN from homeassistant.helpers.selector import ( BooleanSelector, @@ -17,6 +15,7 @@ TextSelectorConfig, TextSelectorType, ) +import voluptuous as vol CONF_API_KEY: Final = "apikey" CONF_API_ECONOMY: Final = "api_key_economy" diff --git a/custom_components/ipv64/coordinator.py b/custom_components/ipv64/coordinator.py index 60be4c5..4d0cff3 100644 --- a/custom_components/ipv64/coordinator.py +++ b/custom_components/ipv64/coordinator.py @@ -8,7 +8,6 @@ import logging import aiohttp - from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_DOMAIN, diff --git a/hacs.json b/hacs.json index f7a53b6..61ac953 100644 --- a/hacs.json +++ b/hacs.json @@ -11,4 +11,4 @@ "homeassistant": "2024.12.5", "hacs": "2.0.1", "filename": "ipv64.zip" -} \ No newline at end of file +}