Skip to content

Commit

Permalink
pun pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Deev committed Aug 23, 2023
1 parent ba647ed commit a37db14
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
3 changes: 2 additions & 1 deletion custom_components/eyeonwater/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import asyncio
import logging

from pyonwater import EyeOnWaterAuthError

from homeassistant.config_entries import ConfigEntry
from homeassistant.const import Platform
from homeassistant.core import HomeAssistant
Expand All @@ -18,7 +20,6 @@
SCAN_INTERVAL,
)
from .coordinator import EyeOnWaterData
from pyonwater import EyeOnWaterAuthError

_LOGGER = logging.getLogger(__name__)
_LOGGER.addHandler(logging.StreamHandler())
Expand Down
3 changes: 2 additions & 1 deletion custom_components/eyeonwater/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Support for EyeOnWater binary sensors."""
from pyonwater import Meter

from homeassistant.components.binary_sensor import (
BinarySensorDeviceClass,
BinarySensorEntity,
Expand All @@ -13,7 +15,6 @@
)

from .const import DATA_COORDINATOR, DATA_SMART_METER, DOMAIN
from pyonwater import Meter

FLAG_SENSORS = [
BinarySensorEntityDescription(
Expand Down
2 changes: 1 addition & 1 deletion custom_components/eyeonwater/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from typing import Any

from aiohttp import ClientError
from pyonwater import Account, Client, EyeOnWaterAPIError, EyeOnWaterAuthError
import voluptuous as vol

from homeassistant import config_entries, core, exceptions
Expand All @@ -12,7 +13,6 @@
from homeassistant.util.unit_system import METRIC_SYSTEM

from .const import DOMAIN
from pyonwater import Account, Client, EyeOnWaterAPIError, EyeOnWaterAuthError

CONF_EOW_HOSTNAME_COM = "eyeonwater.com"
CONF_EOW_HOSTNAME_CA = "eyeonwater.ca"
Expand Down
17 changes: 9 additions & 8 deletions custom_components/eyeonwater/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
import logging
from typing import List

from pyonwater import (
Account,
Client,
EyeOnWaterAPIError,
EyeOnWaterAuthError,
EyeOnWaterResponseIsEmpty,
Meter,
)

from homeassistant.components.recorder.models import StatisticData, StatisticMetaData
from homeassistant.components.recorder.statistics import async_import_statistics
from homeassistant.config_entries import ConfigEntry
Expand All @@ -12,14 +21,6 @@

from .config_flow import create_account_from_config
from .const import WATER_METER_NAME
from pyonwater import (
Account,
Client,
EyeOnWaterAPIError,
EyeOnWaterAuthError,
EyeOnWaterResponseIsEmpty,
Meter,
)

_LOGGER = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion custom_components/eyeonwater/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import datetime
import logging

from pyonwater import Meter
import pytz

from homeassistant.components.recorder import get_instance
Expand All @@ -24,7 +25,6 @@
from homeassistant.util import dt as dtutil

from .const import DATA_COORDINATOR, DATA_SMART_METER, DOMAIN, WATER_METER_NAME
from pyonwater import Meter

_LOGGER = logging.getLogger(__name__)
_LOGGER.addHandler(logging.StreamHandler())
Expand Down
1 change: 0 additions & 1 deletion custom_components/eyeonwater/test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import asyncio

import aiohttp

from pyonwater import Account, Client


Expand Down

0 comments on commit a37db14

Please sign in to comment.