Skip to content

Commit

Permalink
dependencies cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
grimmpp committed May 17, 2024
1 parent aa5977c commit 4a54e41
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 26 deletions.
6 changes: 2 additions & 4 deletions custom_components/eltako/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
"""Support for Eltako binary sensors."""
from __future__ import annotations
from typing import Literal, final

from eltakobus.util import AddressExpression, b2a, b2s
from eltakobus.util import AddressExpression
from eltakobus.eep import *

from homeassistant.components.binary_sensor import BinarySensorEntity, BinarySensorDeviceClass
from homeassistant import config_entries
from homeassistant.const import CONF_DEVICE_CLASS, STATE_ON, STATE_OFF
from homeassistant.const import CONF_DEVICE_CLASS
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.entity import DeviceInfo, EntityDescription
from homeassistant.helpers.typing import ConfigType
from homeassistant.helpers import entity_registry as er

from .device import *
from .const import *
Expand Down
1 change: 0 additions & 1 deletion custom_components/eltako/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.entity import DeviceInfo
from homeassistant.helpers.typing import ConfigType
from homeassistant.helpers import entity_registry as er

from .device import *
from . import config_helpers
Expand Down
5 changes: 1 addition & 4 deletions custom_components/eltako/climate.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
"""Support for Eltako Temperature Control sources."""
from __future__ import annotations

from typing import Any

import asyncio
import time

from eltakobus.util import AddressExpression, b2a
from eltakobus.util import AddressExpression
from eltakobus.eep import *
from eltakobus.message import ESP2Message

Expand All @@ -21,7 +19,6 @@
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.typing import ConfigType
from homeassistant.helpers import entity_registry as er

from .gateway import EnOceanGateway
from .device import *
Expand Down
2 changes: 0 additions & 2 deletions custom_components/eltako/config_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
from homeassistant.core import HomeAssistant
from homeassistant.helpers.typing import ConfigType
from homeassistant.const import CONF_DEVICES, CONF_NAME, CONF_ID
from homeassistant.helpers.entity_registry import EntityRegistry, RegistryEntry
from homeassistant.helpers.entity import Entity

from eltakobus.util import AddressExpression, b2a
from eltakobus.eep import EEP
Expand Down
3 changes: 0 additions & 3 deletions custom_components/eltako/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@
from homeassistant.components.cover import CoverEntity, CoverEntityFeature, ATTR_POSITION
from homeassistant.const import CONF_DEVICE_CLASS, Platform, STATE_OPEN, STATE_OPENING, STATE_CLOSED, STATE_CLOSING
from homeassistant.core import HomeAssistant
from homeassistant.helpers import entity_registry
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.entity import DeviceInfo
from homeassistant.helpers.typing import ConfigType
from homeassistant.helpers import entity_registry as er

from .device import *
from . import config_helpers
Expand Down
1 change: 0 additions & 1 deletion custom_components/eltako/datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from custom_components.eltako.eltako_integration_init import get_gateway_from_hass, get_device_config_for_gateway

from .device import *
from . import config_helpers
from .gateway import EnOceanGateway
from .const import *
from . import get_gateway_from_hass, get_device_config_for_gateway
Expand Down
10 changes: 3 additions & 7 deletions custom_components/eltako/gateway.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Representation of an Eltako gateway."""
from enum import Enum
import glob

from os.path import basename, normpath
Expand All @@ -9,20 +8,17 @@
import serial
import asyncio

from eltakobus.serial import RS485SerialInterface, RS485SerialInterfaceV2, BusInterface
from eltakobus.message import ESP2Message, RPSMessage, Regular1BSMessage, Regular4BSMessage, EltakoPoll, prettify
from eltakobus.serial import RS485SerialInterfaceV2
from eltakobus.message import ESP2Message, EltakoPoll

from eltakobus.util import AddressExpression
from eltakobus.eep import EEP

from enocean.communicators import SerialCommunicator
from enocean.protocol.packet import RadioPacket, RORG, Packet

from homeassistant.core import HomeAssistant
from homeassistant.const import CONF_MAC
from homeassistant.helpers.dispatcher import async_dispatcher_connect, dispatcher_send
from homeassistant.helpers import device_registry as dr
from homeassistant.helpers.device_registry import DeviceRegistry, DeviceInfo
from homeassistant.helpers.device_registry import DeviceRegistry
from homeassistant.config_entries import ConfigEntry

from .const import *
Expand Down
1 change: 0 additions & 1 deletion custom_components/eltako/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from homeassistant.components.light import (
ATTR_BRIGHTNESS,
PLATFORM_SCHEMA,
ColorMode,
LightEntity,
)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/eltako/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"iot_class": "local_push",
"issue_tracker": "https://github.com/grimmpp/home-assistant-eltako/issues",
"loggers": ["eltako"],
"requirements": ["eltako14bus==0.0.52","enocean==0.60.1", "StrEnum", "esp2-gateway-adapter==0.1"],
"requirements": ["eltako14bus==0.0.52", "enocean==0.60.1", "StrEnum", "esp2-gateway-adapter==0.1"],
"version": "1.4.4"
}
3 changes: 1 addition & 2 deletions custom_components/eltako/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from typing import Any

from eltakobus.util import AddressExpression, b2s
from eltakobus.util import AddressExpression
from eltakobus.eep import *

from homeassistant import config_entries
Expand All @@ -12,7 +12,6 @@
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.typing import ConfigType
from homeassistant.helpers import entity_registry as er

from . import config_helpers, get_gateway_from_hass, get_device_config_for_gateway
from .config_helpers import DeviceConf
Expand Down

0 comments on commit 4a54e41

Please sign in to comment.