From 85e4453147eac4ac75fceb318030cef40a0705f4 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 3 Jan 2025 00:43:37 +0000 Subject: [PATCH 1/2] Update hacs.json file Signed-off-by: GitHub Action --- hacs.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hacs.json b/hacs.json index 61ac953..f7a53b6 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 From 207447a5b6001cd7d30c100e5f7e09d020834de5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 3 Jan 2025 00:44:34 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- custom_components/ipv64/__init__.py | 3 +-- custom_components/ipv64/config_flow.py | 3 +-- custom_components/ipv64/const.py | 3 +-- custom_components/ipv64/coordinator.py | 1 - hacs.json | 2 +- 5 files changed, 4 insertions(+), 8 deletions(-) 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 +}