Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 26, 2024
1 parent ecf1bba commit 4c07761
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion custom_components/ecotrend_ista/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

import logging

import voluptuous as vol
from homeassistant import config_entries
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_EMAIL, CONF_PASSWORD, Platform
from homeassistant.core import HomeAssistant
from homeassistant.helpers.typing import ConfigType
import voluptuous as vol

from .const import DATA_HASS_CONFIG, DOMAIN
from .const_schema import DEFAULT_DATA_SCHEMA
Expand Down
4 changes: 2 additions & 2 deletions custom_components/ecotrend_ista/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
from types import MappingProxyType
from typing import Any

import requests
import voluptuous as vol
from homeassistant import config_entries, core
from homeassistant.const import CONF_EMAIL, CONF_PASSWORD
from homeassistant.data_entry_flow import FlowResult
Expand All @@ -16,8 +18,6 @@
)
from pyecotrend_ista.exception_classes import LoginError
from pyecotrend_ista.pyecotrend_ista import PyEcotrendIsta
import requests
import voluptuous as vol

from .const import CONF_MFA, CONF_UPDATE_INTERVAL, CONF_URL, DOMAIN, MANUFACTURER
from .const_schema import DATA_SCHEMA_EMAIL, URL_SELECTOR
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ecotrend_ista/const_schema.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Const schema for ista EcoTrend Version 2."""
from __future__ import annotations

import voluptuous as vol
from homeassistant.const import CONF_EMAIL, CONF_PASSWORD, CONF_SCAN_INTERVAL
from homeassistant.helpers.selector import (
NumberSelector,
Expand All @@ -14,7 +15,6 @@
TextSelectorConfig,
TextSelectorType,
)
import voluptuous as vol

from .const import (
CONF_MFA,
Expand Down
4 changes: 2 additions & 2 deletions custom_components/ecotrend_ista/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
from __future__ import annotations

import datetime
from datetime import timedelta
import json
import logging
import os
from datetime import timedelta
from typing import Any

import requests
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
from pyecotrend_ista.helper_object_de import CustomRaw
from pyecotrend_ista.pyecotrend_ista import PyEcotrendIsta
import requests

from .config_flow import login_account
from .const import CONF_UPDATE_INTERVAL, DOMAIN
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ecotrend_ista/sensor.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""Support for reading status from ecotren-ists."""
from __future__ import annotations

from collections.abc import Callable
import datetime
import logging
from collections.abc import Callable
from typing import Any, cast

from homeassistant.components.sensor import RestoreSensor, SensorEntity
Expand Down

0 comments on commit 4c07761

Please sign in to comment.